summaryrefslogtreecommitdiff
path: root/db/all-monsters.php
blob: 3907fecb230edf2991318f5c4b0763fe81453076 (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__ . '/all-monsters.json', json_encode($allMonsters));