File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ local language_name_types = {
3535 [df .language_name_type .Temple ] = ' Temple' ,
3636 [df .language_name_type .Hospital ] = ' Hospital' ,
3737 [df .language_name_type .Guildhall ] = ' Guildhall' ,
38- [df .language_name_type .Library ] = ' Library'
38+ [df .language_name_type .Library ] = ' Library' ,
3939}
4040
4141local function get_location_religion (religion_id , religion_type )
42- if religion_type == - 1 then return ' Temple'
42+ if religion_type == df . temple_deity_type . None then return ' Temple'
4343 else return locationselector .get_religion_string (religion_id , religion_type ) or ' ' end
4444end
4545
@@ -101,7 +101,7 @@ local function get_location_search_key(zone)
101101 if df .abstract_building_templest :is_instance (building ) then
102102 table.insert (result , get_location_religion (building .deity_data .Deity or building .deity_data .Religion , building .deity_type ))
103103 elseif df .abstract_building_guildhallst :is_instance (building ) then
104- local dwarfified_profession = locationselector .get_profession_string (building .contents .profession ): gsub ( ' [Mm][Aa][Nn] ' , ' dwarf ' ) -- Craftsman becomes Craftsdwarf, etc
104+ local dwarfified_profession = locationselector .get_profession_string (building .contents .profession )
105105 table.insert (result , dwarfified_profession )
106106 end
107107
You can’t perform that action at this time.
0 commit comments