summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-09-16 20:07:36 -0300
committerJesusaves <cpntb1@ymail.com>2019-09-16 20:07:36 -0300
commitf0f4f64ccdcfdbdceec5395782c05d7701199558 (patch)
treef5c2909d71012134679462b9fca41e271a60727d /wiki
parent21802a6ce930a12119f3db240b1d00d5abb1e200 (diff)
downloadtools-f0f4f64ccdcfdbdceec5395782c05d7701199558.tar.gz
tools-f0f4f64ccdcfdbdceec5395782c05d7701199558.tar.bz2
tools-f0f4f64ccdcfdbdceec5395782c05d7701199558.tar.xz
tools-f0f4f64ccdcfdbdceec5395782c05d7701199558.zip
./redesign all → Will now output bifs and other plants
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: