summaryrefslogtreecommitdiff
path: root/wiki
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-09-12 22:48:48 -0300
committerJesusaves <cpntb1@ymail.com>2020-09-12 22:48:48 -0300
commit7bc6d01cb1dd762cd6d25d059e134473dd95229b (patch)
tree4f25211c38a048f8e58df81a44735f034224ea32 /wiki
parent06e6f1a1de2afddbe1a870fa2e63ebc4c894fd80 (diff)
downloadtools-7bc6d01cb1dd762cd6d25d059e134473dd95229b.tar.gz
tools-7bc6d01cb1dd762cd6d25d059e134473dd95229b.tar.bz2
tools-7bc6d01cb1dd762cd6d25d059e134473dd95229b.tar.xz
tools-7bc6d01cb1dd762cd6d25d059e134473dd95229b.zip
Count monsters elementals at the bottom, instead of the deleted table
Diffstat (limited to 'wiki')
-rwxr-xr-xwiki/redesign.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/wiki/redesign.py b/wiki/redesign.py
index b2a9a77..1ea016a 100755
--- a/wiki/redesign.py
+++ b/wiki/redesign.py
@@ -139,6 +139,9 @@ Mobs5=[]
Mobs6=[]
MobsA=[]
+# [N, W, E, F, W, -, H, H, G, -]
+Ele=[0, 0, 0, 0, 0, 0, 0, 0, 0]
+
# This is for Aeros
Plants=[]
Level50=[]
@@ -230,6 +233,7 @@ def WhatElem(rac):
else:
print("ERROR, INVALID ELEM ID: %d (ID: %s)" % (rc, rac.id))
exit(1)
+ Ele[rc]+=1
return "<font color=%s>%s</font>" % (cl, tl)
class Mob:
@@ -947,6 +951,29 @@ wikib.write("""
</table>
""")
wikib.write('<hr/>')
+wikib.write("""
+<h3>Elemental Count</h3>
+<table border=1>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+<tr><td>%s</td><td>%02d</td></tr>
+</table>
+""" % (
+"Neutral", Ele[0],
+"Water", Ele[1],
+"Earth", Ele[2],
+"Fire", Ele[3],
+"Wind", Ele[4],
+"Holy", Ele[6],
+"Dark", Ele[7],
+"Ghost", Ele[8],
+"Error", Ele[5]))
wikib.write('</body></html>')
wikib.close()