diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-22 20:15:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-22 20:15:03 +0300 |
commit | 7dfa42da500427b4d6cf034af21ebdeeb1d9b029 (patch) | |
tree | a4c9a1f0603f266c7a1fdd6eb5b3cac978cf04db /hercules | |
parent | 8a3e60e6597e3e3410eddbbc085825bd1c7a0d2c (diff) | |
download | evol-tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.gz evol-tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.bz2 evol-tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.tar.xz evol-tools-7dfa42da500427b4d6cf034af21ebdeeb1d9b029.zip |
hercules: add homuncules name into converted xml.
Diffstat (limited to 'hercules')
-rw-r--r-- | hercules/code/servertoclient/homunculuses.py | 6 | ||||
-rw-r--r-- | hercules/templates/homunculus.tpl | 4 |
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> |