summaryrefslogtreecommitdiff
path: root/wiki/wikigen.py
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-15 09:02:33 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-15 09:02:33 -0300
commitd46ba86920891b75915ac82e0f680bb2369b8ed9 (patch)
treef5ccef8f9b72c4e59105c34687c50410a8d057fb /wiki/wikigen.py
parentdad6df74030e6617fb96a0920909860e9c657526 (diff)
downloadtools-d46ba86920891b75915ac82e0f680bb2369b8ed9.tar.gz
tools-d46ba86920891b75915ac82e0f680bb2369b8ed9.tar.bz2
tools-d46ba86920891b75915ac82e0f680bb2369b8ed9.tar.xz
tools-d46ba86920891b75915ac82e0f680bb2369b8ed9.zip
wikigen updates
Diffstat (limited to 'wiki/wikigen.py')
-rwxr-xr-xwiki/wikigen.py27
1 files changed, 15 insertions, 12 deletions
diff --git a/wiki/wikigen.py b/wiki/wikigen.py
index d9e1aa7..b4c48d6 100755
--- a/wiki/wikigen.py
+++ b/wiki/wikigen.py
@@ -220,7 +220,7 @@ def newItemDB():
elif " AegisName:" in a:
x.aegis=sti(a)
elif " Name:" in a:
- x.name=sti(a)
+ x.name=stin(a)
elif " Sell:" in a:
x.price=sti(a)
elif " Weight:" in a:
@@ -269,6 +269,9 @@ def newItemDB():
def sti(x):
return x.replace('\n', '').replace('|', '').replace(')', '').replace('Id: ', '').replace('"','').replace(" ","").replace('AegisName: ', '').replace('Name: ','').replace('Sell: ', '').replace('Weight: ', '').replace('Type: ', '').replace('Loc: ', '').replace('Atk: ', '').replace('Matk: ', '').replace('Range: ', '').replace('Def: ', '').replace('EquipLv: ', '').replace(" ", "").replace('@min=','').replace('@max=','').replace('@delay=','').replace(';','')
+def stin(x):
+ return x.replace('\n', '').replace('|', '').replace(')', '').replace('Id: ', '').replace('"','').replace(" ","").replace('Name: ','').replace(';','')
+
def writeItems():
wikia.write("# Items\n\
@@ -309,11 +312,11 @@ def writeItems():
wikia.write(
i.id +"|"+
hl(i) +"|"+
- i.price +"|"+
- i.weight +"|"+
+ i.price +" GP|"+
+ i.weight +"g|"+
i.minheal +"|"+
i.maxheal +"|"+
- i.delheal +"|\n"
+ i.delheal +"s|\n"
)
wikia.write("\n[(↑) Return to top](#items)\n\n")
@@ -326,8 +329,8 @@ def writeItems():
i.id +"|"+
hl(i) +"|"+
i.name +"|"+
- i.price +"|"+
- i.weight +"|\n"
+ i.price +" GP|"+
+ i.weight +"g|\n"
)
wikia.write("\n[(↑) Return to top](#items)\n\n")
@@ -340,8 +343,8 @@ def writeItems():
i.id +"|"+
hl(i) +"|"+
i.name +"|"+
- i.price +"|"+
- i.weight +"|\n"
+ i.price +" GP|"+
+ i.weight +"g|\n"
)
wikia.write("\n[(↑) Return to top](#items)\n\n")
@@ -354,7 +357,7 @@ def writeItems():
i.id +"|"+
hl(i) +"|"+
i.name +"|"+
- i.weight +"|"+
+ i.weight +"g|"+
i.atk +"|"+
i.matk +"|\n"
)
@@ -369,8 +372,8 @@ def writeItems():
i.id +"|"+
hl(i) +"|"+
i.name +"|"+
- i.price +"|"+
- i.weight +"|\n"
+ i.price +" GP|"+
+ i.weight +"g|\n"
)
wikia.write("\n[(↑) Return to top](#items)\n\n")
@@ -383,7 +386,7 @@ def writeItems():
i.id +"|"+
hl(i) +"|"+
i.name +"|"+
- i.weight +"|\n"
+ i.weight +"g|\n"
)
wikia.write("\n[(↑) Return to top](#items)\n\n")