Minor syntax fixes

develop
Ryan Dwyer 2023-11-09 12:11:48 -08:00
parent e6a6185627
commit 8533f06efb
2 changed files with 3 additions and 3 deletions

@ -53,7 +53,7 @@ end
function get_profession_string(profession)
local profession_string = df.profession[profession]:gsub('_', ' ')
local dwarfified_string = profession_string:gsub('[Mm][Aa][Nn]', 'dwarf')
return profession_string .. " " .. dwarfified_string
return profession_string .. ' ' .. dwarfified_string
end
function LocationSelectorOverlay:init()

@ -67,7 +67,7 @@ local function get_zone_search_key(zone)
if zone.location_id == -1 then -- zone is NOT a special location and we don't need to do anything special for type searching
table.insert(result, df.civzone_type[zone.type]);
else -- zone is a special location and we need to get its type from world data
local building, success, _ = utils.binsearch(site.buildings, zone.location_id, 'id')
local building, success = utils.binsearch(site.buildings, zone.location_id, 'id')
if success and building.name then
table.insert(result, language_name_types[building.name.type] or '')
@ -90,7 +90,7 @@ local function get_location_search_key(zone)
local result = {}
-- get language_name and type (we dont need user-given zone name because it does not appear on this page)
local building, success, _ = utils.binsearch(site.buildings, zone.location_id, 'id')
local building, success = utils.binsearch(site.buildings, zone.location_id, 'id')
if success and building.name then
table.insert(result, language_name_types[building.name.type] or '')
if building.name.has_name then