summaryrefslogtreecommitdiff
path: root/db/all-items.php
blob: 29fd4c5f002c13958c3c4c42bd91c45b7adf5e06 (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__ . '/_generated/all-items.json', json_encode($allItems));