572
edits
(Adding p.GetTaskTable(frame)) |
(Accidentally overwrote Auron's edits - Re-implementing fix) |
||
Line 304: | Line 304: | ||
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 |
edits