diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-15 13:18:57 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-15 13:18:57 +0200 |
commit | 8ab8988d01199f64151c532c59ff6c08735d4e37 (patch) | |
tree | 17d5bbdf36aa744119f37e0fffc6ede78d13fa70 /all-monsters.php |
initial commit
Diffstat (limited to 'all-monsters.php')
-rw-r--r-- | all-monsters.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/all-monsters.php b/all-monsters.php new file mode 100644 index 0000000..cf687c7 --- /dev/null +++ b/all-monsters.php @@ -0,0 +1,10 @@ +<?php + +$allMonsters = []; +foreach (scandir(__DIR__ . '/modules/tuxemon/mods/tuxemon/db/monster') as $file) { + if (in_array($file, ['.', '..'])) continue; + + $allMonsters[] = pathinfo($file, PATHINFO_FILENAME); +} + +file_put_contents(__DIR__ . '/db/all-monsters.json', json_encode($allMonsters)); |