diff options
author | HoraK-FDF <horak-fdf@web.de> | 2024-06-01 09:01:30 +0200 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2024-06-01 09:01:30 +0200 |
commit | 368051bb9d150282c3908c3947c346916cc04325 (patch) | |
tree | bc3a4faa2df303dfcc6812415adca2177232e0c0 | |
parent | 1dc56421493df2b9016b0096998cd668a429ab9e (diff) | |
download | tools-368051bb9d150282c3908c3947c346916cc04325.tar.gz tools-368051bb9d150282c3908c3947c346916cc04325.tar.bz2 tools-368051bb9d150282c3908c3947c346916cc04325.tar.xz tools-368051bb9d150282c3908c3947c346916cc04325.zip |
KeepAfterUse + DontUseAmmo
-rwxr-xr-x | evolved.py | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -252,6 +252,8 @@ enum class ItemMode : uint8_t NO_TRADE = 2, NO_SELL_TO_NPC = 4, NO_STORAGE = 8, + KEEP_AFTER_USE = 16, + DONT_USE_AMMO = 32, }; """ def newItemDB(): @@ -259,7 +261,9 @@ def newItemDB(): IT_NO_TRADE = 2 IT_NO_SELL_TO_NPC = 4 IT_NO_STORAGE = 8 - IT_DROPANNOUNCE = 16 + IT_KEEP_AFTER_USE = 16 + IT_DONT_USE_AMMO = 32 + IT_DROPANNOUNCE = 64 print("\nGenerating Item Wiki...") if len(sys.argv) >= 2: @@ -333,9 +337,6 @@ def newItemDB(): elif "\tAllowCards:" in a: x.ac=True # Write booleans - elif "\tDropAnnounce: true" in a: - x.rare=True - #x.md = x.md | IT_DROPANNOUNCE elif "\tnodrop: true" in a: #x.drop=False x.md = x.md | IT_NO_DROP @@ -348,6 +349,15 @@ def newItemDB(): elif "\tnostorage: true" in a: #x.store=False x.md = x.md | IT_NO_STORAGE + elif "\tKeepAfterUse: true" in a: + #x.keepafteruse=False + x.md = x.md | IT_KEEP_AFTER_USE + elif "\tDontUseAmmo: true" in a: + #x.dontuseammo=False + x.md = x.md | IT_DONT_USE_AMMO + elif "\tDropAnnounce: true" in a: + x.rare=True + #x.md = x.md | IT_DROPANNOUNCE elif "\tNouse:" in a: nouse=True elif "\toverride:" in a: @@ -391,7 +401,7 @@ def newItemDB(): ############################################################################################# def sti(x): - return x.replace('\n', '').replace('|', '').replace(')', '').replace('Id: ', '').replace('"','').replace(';','').replace(" ","").replace("\t","").replace('AegisName: ', '').replace('Name: ','').replace('Buy: ', '').replace('Sell: ', '').replace('Weight: ', '').replace('Type: ', '').replace('Loc: ', '').replace('Atk: ', '').replace('Matk: ', '').replace('Range: ', '').replace('Def: ', '').replace('WeaponLv: ', '').replace('EquipLv: ', '').replace('Subtype: ', '').replace('Slots: ', '').replace('Gender: ', '').replace('nodrop: ', '').replace('notrade: ', '').replace('noselltonpc: ', '').replace('nostorage: ', '').replace('override: ', '').replace(" ", "").strip() + return x.replace('\n', '').replace('|', '').replace(')', '').replace('Id: ', '').replace('"','').replace(';','').replace(" ","").replace("\t","").replace('AegisName: ', '').replace('Name: ','').replace('Buy: ', '').replace('Sell: ', '').replace('Weight: ', '').replace('Type: ', '').replace('Loc: ', '').replace('Atk: ', '').replace('Matk: ', '').replace('Range: ', '').replace('Def: ', '').replace('WeaponLv: ', '').replace('EquipLv: ', '').replace('Subtype: ', '').replace('Slots: ', '').replace('Gender: ', '').replace('nodrop: ', '').replace('notrade: ', '').replace('noselltonpc: ', '').replace('nostorage: ', '').replace('KeepAfterUse: ', '').replace('DontUseAmmo: ', '').replace('override: ', '').replace(" ", "").strip() ############################################################################################# def stis(x): |