Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 83: Line 83:
return resources
return resources
end
-- Returns a sorted list of all Township buildings
function p._SortedBuildings()
return GameData.sortByOrderTable(Township.buildings, Township.buildingDisplayOrder[1].ids)
end
end


Line 682: Line 687:
biomeModifiersMaster[biome.id] = false
biomeModifiersMaster[biome.id] = false
end
end
for _, _building in ipairs(Township.buildings) do
for _, _building in ipairs(p._SortedBuildings()) do
-- Fix melvorF:Statues
-- Fix melvorF:Statues
local building = p._GetBuildingByID(_building.id)
local building = p._GetBuildingByID(_building.id)
572

edits