blob: c593bd4e4ccaa107e56811c9d55ffd3e797b2cd6 (
plain)
1
2
3
4
5
6
7
8
9
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__ . '/_generated/all-monsters.json', json_encode($allMonsters));
|