summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki/redesign.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/wiki/redesign.py b/wiki/redesign.py
index 2871e67..f7c2529 100755
--- a/wiki/redesign.py
+++ b/wiki/redesign.py
@@ -13,6 +13,7 @@ import sys
stgen=True
aeros=False
+bifs=False
wikib=open("EleMonsters.html", "w")
wikib.write('<html><head><meta charset=utf8 /><title>EleGen File</title></head><body>')
@@ -85,7 +86,7 @@ def printSeparator():
print("--------------------------------------------------------------------------------")
def showHeader():
- global stgen, aeros
+ global stgen, aeros, bifs
print("TMW2 Ele Generator")
print("Run at: " + datetime.datetime.now().isoformat())
print("Usage: ./redesign.py [default|aeros|none|all] [<path_to_serverdata>]")
@@ -93,15 +94,19 @@ def showHeader():
if sys.argv[1] == "default":
stgen=True
aeros=False
+ bifs=False
elif sys.argv[1] == "aeros":
stgen=False
aeros=True
+ bifs=False
elif sys.argv[1] == "none":
stgen=False
aeros=False
+ bifs=False
elif sys.argv[1] == "all":
stgen=True
aeros=True
+ bifs=True
else:
exit(1)
print("This stuff analyzes and sorts monsters and then create base stats for Moubootaur Legends.")
@@ -440,7 +445,7 @@ def MonsterWrite(tbl):
# Special skips for REDESIGN
#if (int(i.id) < 1187):
# continue
- if (int(i.hp) <= 50) or (i.race == 3):
+ if not bifs and ((int(i.hp) <= 50) or (i.race == 3)):
continue
if i.boss: