|
|
@ -98,9 +98,9 @@ local function get_location_search_key(zone)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
-- for temples and guildhalls, get assigned organization
|
|
|
|
-- for temples and guildhalls, get assigned organization
|
|
|
|
if language_name_types[building.name.type] == 'Temple' then
|
|
|
|
if df.abstract_building_templest:is_instance(building) then
|
|
|
|
table.insert(result, get_location_religion(building.deity_data.Deity or building.deity_data.Religion, building.deity_type))
|
|
|
|
table.insert(result, get_location_religion(building.deity_data.Deity or building.deity_data.Religion, building.deity_type))
|
|
|
|
elseif language_name_types[building.name.type] == 'Guildhall' then
|
|
|
|
elseif df.abstract_building_guildhallst:is_instance(building) then
|
|
|
|
local dwarfified_profession = locationselector.get_profession_string(building.contents.profession):gsub('[Mm][Aa][Nn]', 'dwarf') -- Craftsman becomes Craftsdwarf, etc
|
|
|
|
local dwarfified_profession = locationselector.get_profession_string(building.contents.profession):gsub('[Mm][Aa][Nn]', 'dwarf') -- Craftsman becomes Craftsdwarf, etc
|
|
|
|
table.insert(result, dwarfified_profession)
|
|
|
|
table.insert(result, dwarfified_profession)
|
|
|
|
end
|
|
|
|
end
|
|
|
|