Skip to content

Commit

Permalink
exportlegends: Remove abstract_building_underworld_spire blacklist at…
Browse files Browse the repository at this point in the history
…tempt

This was being bypassed because this class has a `name` field, and it's exported
successfully as of DFHack/df-structures@81e2cf0

Ref DFHack/dfhack#1005
  • Loading branch information
lethosor committed Oct 19, 2016
1 parent 6ca6ad9 commit b285334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exportlegends.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function export_more_legends_xml()
file:write("\t\t\t<structure>\n")
file:write("\t\t\t\t<id>"..buildingV.id.."</id>\n")
file:write("\t\t\t\t<type>"..df_enums.abstract_building_type[buildingV:getType()]:lower().."</type>\n")
if (df_enums.abstract_building_type[buildingV:getType()]:lower() ~= "underworld_spire" or table.containskey(buildingV,"name")) then
if table.containskey(buildingV,"name") then
file:write("\t\t\t\t<name>"..dfhack.df2utf(dfhack.TranslateName(buildingV.name, 1)).."</name>\n")
file:write("\t\t\t\t<name2>"..dfhack.df2utf(dfhack.TranslateName(buildingV.name)).."</name2>\n")
end
Expand Down

0 comments on commit b285334

Please sign in to comment.