summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-22 20:15:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-22 20:15:03 +0300
commit7dfa42da500427b4d6cf034af21ebdeeb1d9b029 (patch)
treea4c9a1f0603f266c7a1fdd6eb5b3cac978cf04db
parent8a3e60e6597e3e3410eddbbc085825bd1c7a0d2c (diff)
downloadtools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.gz
tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.bz2
tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.xz
tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.zip
hercules: add homuncules name into converted xml.
-rw-r--r--hercules/code/servertoclient/homunculuses.py6
-rw-r--r--hercules/templates/homunculus.tpl4
2 files changed, 6 insertions, 4 deletions
diff --git a/hercules/code/servertoclient/homunculuses.py b/hercules/code/servertoclient/homunculuses.py
index 96c133b..f2683d3 100644
--- a/hercules/code/servertoclient/homunculuses.py
+++ b/hercules/code/servertoclient/homunculuses.py
@@ -24,6 +24,8 @@ def convertHomunculuses():
rows = fieldsSplit.split(line)
if len(rows) < 9:
continue
- homunculusId = rows[0]
- data = data + tpl.format(homunculusId, homunculusSprite)
+ data = data + tpl.format(
+ id = rows[0],
+ sprite = homunculusSprite,
+ name = rows[2])
saveFile(destDir + "homunculuses.xml", homunculuses.format(data))
diff --git a/hercules/templates/homunculus.tpl b/hercules/templates/homunculus.tpl
index f2c3301..67a76bc 100644
--- a/hercules/templates/homunculus.tpl
+++ b/hercules/templates/homunculus.tpl
@@ -1,3 +1,3 @@
- <homunculus id="{0}">
- {1}
+ <homunculus id="{id}" name="{name}">
+ {sprite}
</homunculus>