diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
commit | d3e65b98ca932aef1e05e33d74eaf62be520cdd4 (patch) | |
tree | 3645410b3c4c857d1a602f6b6abda71b106aae64 /db/all-items.php | |
parent | aa44f67ab57673528e96a4a075fbd8cd0354bd68 (diff) |
inventory and items
Diffstat (limited to 'db/all-items.php')
-rw-r--r-- | db/all-items.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/all-items.php b/db/all-items.php new file mode 100644 index 0000000..b6d9a49 --- /dev/null +++ b/db/all-items.php @@ -0,0 +1,10 @@ +<?php + +$allItems = []; +foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/db/item') as $file) { + if (in_array($file, ['.', '..'])) continue; + + $allItems[] = pathinfo($file, PATHINFO_FILENAME); +} + +file_put_contents(__DIR__ . '/all-items.json', json_encode($allItems)); |