diff options
-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=[] |