From 0c4d2889c62e2c9e806829c3c1818eefb0cd18a0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 11 Jul 2018 15:41:14 -0300 Subject: Recognize race 6 as "Evil" --- wiki/elegen.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wiki/elegen.py b/wiki/elegen.py index 21ba5ab..226fe13 100755 --- a/wiki/elegen.py +++ b/wiki/elegen.py @@ -10,6 +10,7 @@ import datetime wikib=open("EleMonsters.html", "w") wikib.write('EleGen File') +totalid=0 def printSeparator(): print("--------------------------------------------------------------------------------") @@ -71,7 +72,7 @@ def WhatRace(rac): elif rc == 5: return "Fish" elif rc == 6: - return "-" + return "Evil" elif rc == 7: return "SemiHuman" elif rc == 8: @@ -183,6 +184,7 @@ def MobAlloc(ab): MobsA.append(ab) def testMobs(): + global totalid print("Generating Elem-Mob Wiki...") src=open("../../server-data/db/re/mob_db.conf", "r") wikib.write("

EleGen Monster Database

\n") @@ -200,6 +202,7 @@ def testMobs(): if " Id:" in a: x.id=stp(a) + totalid+=1 if x.id == "ID": continue @@ -288,6 +291,7 @@ def MonsterWrite(tbl): wikib.write("\n(↑) Return to top

\n\n") def writeMob(): + wikib.write("Total monsters: %d
" % totalid) wikib.write("