summaryrefslogtreecommitdiff
path: root/wiki/wikigen.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2024-01-20 12:52:36 -0300
committerJesusaves <cpntb1@ymail.com>2024-01-20 12:52:36 -0300
commita2ce6f3e5ba608052cac4d635340f26b1b98192a (patch)
tree05f71b75a924760416a9b8e5dbd735e171ad509b /wiki/wikigen.py
parenteb6c93ad0ed5508a3973ddbe48306f33ce5900b0 (diff)
downloadtools-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/wikigen.py')
-rwxr-xr-xwiki/wikigen.py7
1 files changed, 7 insertions, 0 deletions
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)