Anonymous

Module:Sandbox/GauTest/Township: Difference between revisions

From Melvor Idle
no edit summary
No edit summary
No edit summary
Line 79: Line 79:
-- Get a sorted list of all the resources
-- Get a sorted list of all the resources
local resources = GameData.sortByOrderTable(Township.resources, Township.resourceDisplayOrder[1].ids)
local resources = GameData.sortByOrderTable(Township.resources, Township.resourceDisplayOrder)
resources = Shared.clone(resources)
resources = Shared.clone(resources)
Line 87: Line 87:
-- Returns a sorted list of all Township buildings
-- Returns a sorted list of all Township buildings
function p._SortedBuildings()
function p._SortedBuildings()
return GameData.sortByOrderTable(Township.buildings, Township.buildingDisplayOrder[1].ids)
return GameData.sortByOrderTable(Township.buildings, Township.buildingDisplayOrder)
end
end


572

edits