summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>