Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
(Statue special case)
No edit summary
Line 317: Line 317:
-- Check for the special statue case
-- Check for the special statue case
local STATUE_OF = 'Statue of '
local STATUE_OF = 'Statue of '
if strsub(name, 1, strlen(STATUE_OF)) == STATUE_OF then
if string.sub(name, 1, string.len(STATUE_OF)) == STATUE_OF then
local building = Shared.clone(GameData.getEntityByName(Township.buildings, 'STATUE_NAME'))
local building = Shared.clone(GameData.getEntityByName(Township.buildings, 'STATUE_NAME'))
building.name = name
building.name = name
572

edits