diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-03-21 00:51:38 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-03-21 00:51:38 -0300 |
commit | 87958c263de40ebf91ace39690cc7fb119463a8b (patch) | |
tree | 5873da1452a5c1f12a54051e4370c6981fc4b337 /wiki | |
parent | 54386b90047816ad6cccac568b7a1ed42fa96ac7 (diff) | |
download | tools-87958c263de40ebf91ace39690cc7fb119463a8b.tar.gz tools-87958c263de40ebf91ace39690cc7fb119463a8b.tar.bz2 tools-87958c263de40ebf91ace39690cc7fb119463a8b.tar.xz tools-87958c263de40ebf91ace39690cc7fb119463a8b.zip |
Minor fixes and a couple of TODOs to force @Saulc to do a decent balancing
Diffstat (limited to 'wiki')
-rwxr-xr-x | wiki/wikigen.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/wiki/wikigen.py b/wiki/wikigen.py index 53eb5bc..91bea24 100755 --- a/wiki/wikigen.py +++ b/wiki/wikigen.py @@ -170,6 +170,7 @@ def stp(x): def MonsterWrite(tbl): + # TODO: Check _mobs files to determine the usual monster density (a misc info to aid adding proper drop specs) wikib.write("<table border=1>\n") wikib.write("<tr><th>ID</th><th>Name</th><th>HP</th><th>Atk</th><th>Delay</th><th>Modes</th><th>Misc Info</th><th>Rewards</th><th>Drops</th></tr>\n") for i in tbl: @@ -497,13 +498,13 @@ def hl(it): buff+=it.aegis buff+=" " if not it.drop: - buff+="[(dp)](#restrictions-reference)" + buff+="<a href='#restrictions-reference'>(dp)</a>" if not it.trade: - buff+="[(tr)](#restrictions-reference)" + buff+="<a href='#restrictions-reference'>(tr)</a>" if not it.sell: - buff+="[(sl)](#restrictions-reference)" + buff+="<a href='#restrictions-reference'>(sl)</a>" if not it.store: - buff+="[(gg)](#restrictions-reference)" + buff+="<a href='#restrictions-reference'>(gg)</a>" return buff # wikia.write("Id|Aegis|Name|Weight|Atk|Matk|\n") @@ -548,7 +549,7 @@ def ItemWrite(tbl, ID=False, AEGIS=False, NAME=False, PRICE=False, WEIGHT=False, if ID: wikia.write("<td>%s</td>" % i.id) if AEGIS: - wikia.write("<td>%s</td>" % i.aegis) + wikia.write("<td>%s</td>" % hl(i)) if NAME: wikia.write("<td>%s</td>" % i.name) if PRICE: @@ -570,6 +571,7 @@ def ItemWrite(tbl, ID=False, AEGIS=False, NAME=False, PRICE=False, WEIGHT=False, wikia.write("<td>%s s</td>" % i.delheal) if SCRIPT: wikia.write("<td>%s</td>" % i.script) + # TODO: Check for item Aegis in npc/ folder too, to determine shops and quests. if DROPPER: tmp_droppers="" tmp_drpalign=[] |