diff options
author | Led Mitz <smoothshifter@tuta.io> | 2023-08-11 20:56:19 +0000 |
---|---|---|
committer | Led Mitz <smoothshifter@tuta.io> | 2023-08-11 20:56:19 +0000 |
commit | 22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0 (patch) | |
tree | b444a633f93ffce33e074bdae17c58656838b3f0 | |
parent | ae849f6e931fe23125fbc5967ef862ff0248cd43 (diff) | |
parent | 2dd5c2411fb8b313c4f44747a1e96a1f8e216e2a (diff) | |
download | tools-22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0.tar.gz tools-22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0.tar.bz2 tools-22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0.tar.xz tools-22ce3fd72b46c4675d82fa4b35fa24b8f22bd2d0.zip |
Merge branch 'wlv' into 'master'
WeaponLv
See merge request legacy/tools!37
-rwxr-xr-x | evolved.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -154,7 +154,7 @@ class It: self.sl="0" # Slots (unused always 0) self.gender="2" # default = UNSPECIFIED = 2 self.loc="" - self.wlv="0" # 1 for weapons, 0 for all others including ammo + self.wlv="0" # >= 1 for weapons, 0 for all others including ammo self.elv="0" # equip lvl self.md=0 self.subtype="" @@ -310,6 +310,8 @@ def newItemDB(): x.range=sti(a) elif "\tDef:" in a: x.df=sti(a) + elif "\tWeaponLv:" in a: + x.wlv=sti(a) elif "\tEquipLv:" in a: x.elv=sti(a) #elif "\tSlots:" in a: # allways 0 in tmwa atm @@ -389,7 +391,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('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('override: ', '').replace(" ", "").strip() ############################################################################################# def stis(x): |