summaryrefslogtreecommitdiff
path: root/db/all-items.php
diff options
context:
space:
mode:
Diffstat (limited to 'db/all-items.php')
-rw-r--r--db/all-items.php10
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));