diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-18 16:07:39 +0200 |
commit | d3e65b98ca932aef1e05e33d74eaf62be520cdd4 (patch) | |
tree | 3645410b3c4c857d1a602f6b6abda71b106aae64 /db | |
parent | aa44f67ab57673528e96a4a075fbd8cd0354bd68 (diff) |
inventory and items
Diffstat (limited to 'db')
-rw-r--r-- | db/all-items.json | 1 | ||||
-rw-r--r-- | db/all-items.php | 10 |
2 files changed, 11 insertions, 0 deletions
diff --git a/db/all-items.json b/db/all-items.json new file mode 100644 index 0000000..c996fc1 --- /dev/null +++ b/db/all-items.json @@ -0,0 +1 @@ +["aardant","allies_address","ancient_egg","ancient_tea","app_banking","app_contacts","app_map","app_tuxepedia","boost_armour","boost_dodge","boost_melee","boost_ranged","boost_speed","booster_tech","cureall","dojo_pass","earth_booster","earthmover_key","fire_berry","fire_booster","fishing_rod","flintstone","gold_pass","greenwash_badge","hatchet","imperial_potion","imperial_tea","lucky_bamboo","mega_potion","metal_booster","metal_cherry","miaow_milk","mm_earth","mm_fire","mm_metal","mm_water","mm_wood","mystery_tea","neptune","nimrod_badge","nu_phone","omnichannel_badge","ox_stick","p_monsters_eyes_meet","p_starry_night","p_trepidation","peace_lily","petrified_dung","poseidon","potion","pyramidion","raise_armour","raise_dodge","raise_hp","raise_melee","raise_ranged","raise_speed","reg_papers","restoration","revive","rhincus_fossil","scoop_badge","sea_girdle","shaft_badge","shammer_fossil","sledgehammer","spyder_pass","stovepipe","super_potion","surfboard","sweet_sand","tea","tectonic_drill","thunderstone","tm_avalanche","tm_blossom","tm_earth","tm_fire","tm_metal","tm_surf","tm_water","tm_wood","tuxeball","tuxeball_ancient","tuxeball_candy","tuxeball_crusher","tuxeball_earth","tuxeball_female","tuxeball_fire","tuxeball_hardened","tuxeball_hearty","tuxeball_lavish","tuxeball_male","tuxeball_metal","tuxeball_neuter","tuxeball_omni","tuxeball_peppy","tuxeball_refined","tuxeball_salty","tuxeball_water","tuxeball_wood","tuxeball_xero","tuxeball_zesty","water_booster","wood_booster"]
\ No newline at end of file diff --git a/db/all-items.php b/db/all-items.php new file mode 100644 index 0000000..b6d9a49 --- /dev/null +++ b/db/all-items.php @@ -0,0 +1,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)); |