summaryrefslogtreecommitdiff
path: root/hercules
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-22 21:00:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-22 21:00:51 +0300
commit8a1e1ce6614f0c340b8251cb8ac68386d8577ee4 (patch)
treee8f8ca07dd3ce036e31dfc77dabb86920215ac5f /hercules
parente3ed84959f0c38085a2acb58dd1ea678a4c8e5ad (diff)
downloadevol-tools-8a1e1ce6614f0c340b8251cb8ac68386d8577ee4.tar.gz
evol-tools-8a1e1ce6614f0c340b8251cb8ac68386d8577ee4.tar.bz2
evol-tools-8a1e1ce6614f0c340b8251cb8ac68386d8577ee4.tar.xz
evol-tools-8a1e1ce6614f0c340b8251cb8ac68386d8577ee4.zip
hercules: add pets name into converted xml.
Diffstat (limited to 'hercules')
-rw-r--r--hercules/code/servertoclient/pets.py6
-rw-r--r--hercules/templates/pet.tpl4
2 files changed, 6 insertions, 4 deletions
diff --git a/hercules/code/servertoclient/pets.py b/hercules/code/servertoclient/pets.py
index cad4af3..c064af7 100644
--- a/hercules/code/servertoclient/pets.py
+++ b/hercules/code/servertoclient/pets.py
@@ -24,6 +24,8 @@ def convertPets():
rows = fieldsSplit.split(line)
if len(rows) < 9:
continue
- petId = rows[0]
- data = data + tpl.format(petId, petSprite)
+ data = data + tpl.format(
+ id = rows[0],
+ sprite = petSprite,
+ name = rows[2])
saveFile(destDir + "pets.xml", pets.format(data))
diff --git a/hercules/templates/pet.tpl b/hercules/templates/pet.tpl
index e328137..08d489c 100644
--- a/hercules/templates/pet.tpl
+++ b/hercules/templates/pet.tpl
@@ -1,3 +1,3 @@
- <pet id="{0}">
- {1}
+ <pet id="{id}" name="{name}">
+ {sprite}
</pet>