blob: b6d9a49a26d3b492a3909d3e2bb5b65442da671d (
plain)
1
2
3
4
5
6
7
8
9
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));
|