Fix a couple exportlegends issues and update xml

develop
lethosor 2015-12-31 14:32:31 -05:00
parent 090787e927
commit 31745f4a36
2 changed files with 3 additions and 3 deletions

@ -1 +1 @@
Subproject commit 3b7d075992692c709730d34720b35598b5cb4710
Subproject commit bd5f8a90178371f83ef6348eaa3e376aee5e7af3

@ -211,8 +211,8 @@ function export_more_legends_xml()
file:write("\t\t<race>"..(df.global.world.raws.creatures.all[entityV.race].creature_id):lower().."</race>\n")
end
file:write("\t\t<type>"..(df.historical_entity_type[entityV.type]):lower().."</type>\n")
if (df.historical_entity_type[entityV.type]):lower() == "religion" then -- Get worshipped figure
if (entityV.unknown1b ~= nil and entityV.unknown1b.worship ~= nill and
if entityV.type == df.historical_entity_type.Religion then -- Get worshipped figure
if (entityV.unknown1b ~= nil and entityV.unknown1b.worship ~= nil and
#entityV.unknown1b.worship == 1) then
file:write("\t\t<worship_id>"..entityV.unknown1b.worship[0].."</worship_id>\n")
else