From 7dfa42da500427b4d6cf034af21ebdeeb1d9b029 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 May 2016 20:15:03 +0300 Subject: hercules: add homuncules name into converted xml. --- hercules/code/servertoclient/homunculuses.py | 6 ++++-- 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 @@ - - {1} + + {sprite} -- cgit v1.2.3-70-g09d2