diff options
Diffstat (limited to 'db/all-monsters.php')
-rw-r--r-- | db/all-monsters.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db/all-monsters.php b/db/all-monsters.php new file mode 100644 index 0000000..3907fec --- /dev/null +++ b/db/all-monsters.php @@ -0,0 +1,10 @@ +<?php + +$allMonsters = []; +foreach (scandir(dirname(__DIR__) . '/modules/tuxemon/mods/tuxemon/db/monster') as $file) { + if (in_array($file, ['.', '..'])) continue; + + $allMonsters[] = pathinfo($file, PATHINFO_FILENAME); +} + +file_put_contents(__DIR__ . '/all-monsters.json', json_encode($allMonsters)); |