diff options
author | Jesusaves <cpntb1@ymail.com> | 2024-01-20 12:52:36 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2024-01-20 12:52:36 -0300 |
commit | a2ce6f3e5ba608052cac4d635340f26b1b98192a (patch) | |
tree | 05f71b75a924760416a9b8e5dbd735e171ad509b /wiki | |
parent | eb6c93ad0ed5508a3973ddbe48306f33ce5900b0 (diff) | |
download | tools-a2ce6f3e5ba608052cac4d635340f26b1b98192a.tar.gz tools-a2ce6f3e5ba608052cac4d635340f26b1b98192a.tar.bz2 tools-a2ce6f3e5ba608052cac4d635340f26b1b98192a.tar.xz tools-a2ce6f3e5ba608052cac4d635340f26b1b98192a.zip |
Update wiki scripts, as food class was added
Diffstat (limited to 'wiki')
-rwxr-xr-x | wiki/sedesign.py | 3 | ||||
-rwxr-xr-x | wiki/webwikigen.py | 9 | ||||
-rwxr-xr-x | wiki/wikigen.py | 7 |
3 files changed, 18 insertions, 1 deletions
diff --git a/wiki/sedesign.py b/wiki/sedesign.py index 26d956b..86a165e 100755 --- a/wiki/sedesign.py +++ b/wiki/sedesign.py @@ -138,6 +138,9 @@ def ItAlloc(it): elif 'EQP_SHADOW_ACC_R' in it.loc: IT_ARMOR['EQP_ACC_R'].append(it) # Not really it.fc=0.00 + elif 'EQP_SHADOW_ACC_L' in it.loc: + # Don't append anywhere, skip it altogether + return else: raise Exception("Invalid Loc for ID %s: %s" % (it.id, it.loc)) elif "IT_WEAPON" in a: diff --git a/wiki/webwikigen.py b/wiki/webwikigen.py index 51a8d7a..65a1a50 100755 --- a/wiki/webwikigen.py +++ b/wiki/webwikigen.py @@ -18,6 +18,7 @@ IT_ETC=[] IT_USABLE=[] IT_AMMO=[] IT_CARD=[] +IT_FOOD=[] IT_PETEGG=[] IT_WEAPON={ 'HAND_2': [], # TWO HAND (LR) 'HAND_1':[]} # WEAPONS (R) @@ -478,7 +479,9 @@ def ItAlloc(it): elif '2048' in it.loc: IT_ARMOR['2048'].append(it) elif 'EQP_SHADOW_ACC_R' in it.loc: - IT_ARMOR['EQP_ACC_R'].append(it) + IT_ARMOR['EQP_ACC_R'].append(it) # Not really + elif 'EQP_SHADOW_ACC_L' in it.loc: + IT_FOOD.append(it) else: raise Exception("Invalid Loc for ID %s: %s" % (it.id, it.loc)) @@ -610,6 +613,10 @@ def writeItems(): wikia.write("## Pet Eggs\n") ItemWrite(IT_PETEGG, ID=True, AEGIS=True, NAME=True, WEIGHT=True) + # Ammo Items + wikia.write("## Cooked Food\n") + ItemWrite(IT_FOOD, ID=True, AEGIS=True, NAME=True, WEIGHT=True, SCRIPT=True) + #################################################################### wikia.write("# Weapons\n") diff --git a/wiki/wikigen.py b/wiki/wikigen.py index c5ce71e..3cae540 100755 --- a/wiki/wikigen.py +++ b/wiki/wikigen.py @@ -20,6 +20,7 @@ IT_ETC=[] IT_USABLE=[] IT_AMMO=[] IT_CARD=[] +IT_FOOD=[] IT_PETEGG=[] IT_WEAPON={ 'HAND_2': [], # TWO HAND (LR) 'HAND_1':[]} # WEAPONS (R) @@ -383,6 +384,8 @@ def ItAlloc(it): IT_ARMOR['EQP_MOUNT'].append(it) elif 'EQP_SHADOW_ACC_R' in it.loc: IT_ARMOR['EQP_ACC_R'].append(it) # Not really + elif 'EQP_SHADOW_ACC_L' in it.loc: + IT_FOOD.append(it) else: raise Exception("Invalid Loc for ID %s: %s" % (it.id, it.loc)) @@ -532,6 +535,10 @@ def writeItems(): wikia.write("## Pet Eggs\n") ItemWrite(IT_PETEGG, ID=True, AEGIS=True, NAME=True, WEIGHT=True) + # Ammo Items + wikia.write("## Cooked Food\n") + ItemWrite(IT_FOOD, ID=True, AEGIS=True, NAME=True, WEIGHT=True, SCRIPT=True) + # Mount Items wikia.write("## Mounts\n") ItemWrite(IT_ARMOR['EQP_MOUNT'], ID=True, AEGIS=True, NAME=True, WEIGHT=True) |