From 45121ce3ad00d6b37527427eba78526ceb3e23be Mon Sep 17 00:00:00 2001 From: Robert Janetzko Date: Tue, 12 Jan 2016 16:47:44 +0100 Subject: [PATCH] race for HIST_FIGURE_NEW_PET event --- scripts/exportlegends.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/exportlegends.lua b/scripts/exportlegends.lua index a7c6ca2ca..d1fc3c4f6 100644 --- a/scripts/exportlegends.lua +++ b/scripts/exportlegends.lua @@ -523,7 +523,7 @@ function export_more_legends_xml() end elseif event:getType() == df.history_event_type.HIST_FIGURE_NEW_PET and k == "pets" then for detailK,detailV in pairs(v) do - file:write("\t\t<"..k..">"..(df.global.world.raws.creatures.all[detailV].creature_id):lower().."\n") + file:write("\t\t<"..k..">"..df.global.world.raws.creatures.all[detailV].name[0].."\n") end elseif event:getType() == df.history_event_type.BODY_ABUSED and (k == "props") then file:write("\t\t<"..k.."_item_type>"..tostring(df.item_type[event.props.item.item_type]):lower().."\n")