16,254
edits
No edit summary |
(_GetrBuildingByName: Fix statue handling following localization changes) |
||
Line 302: | Line 302: | ||
function p._GetBuildingByName(name) | function p._GetBuildingByName(name) | ||
-- Check for the special statue case | -- Check for the special statue case | ||
if name == ' | if name == 'Statues' then | ||
name = 'Statue of Worship' | name = 'Statue of Worship' | ||
end | end | ||
local STATUE_OF = 'Statue of ' | local STATUE_OF = 'Statue of ' | ||
if string.sub(name, 1, string.len(STATUE_OF)) == STATUE_OF then | if string.sub(name, 1, string.len(STATUE_OF)) == STATUE_OF then | ||
local building = Shared.clone(GameData. | local building = Shared.clone(GameData.getEntityByID(Township.buildings, 'melvorF:Statues')) | ||
building.name = name | building.name = name | ||
return building | return building |