Module:Sandbox/GauTest/Township: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 80: Line 80:
-- 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[1].ids)
-- TODO Fix when the GameData is updated
-- local resources = GameData.sortByOrderTable(Township.resources, Township.resourceDisplayOrder)
resources = Shared.clone(resources)
resources = Shared.clone(resources)
Line 88: Line 90:
function p._SortedBuildings()
function p._SortedBuildings()
return Township.buildings
return Township.buildings
--return GameData.sortByOrderTable(Township.buildings, Township.buildingDisplayOrder)
-- TODO Fix when the GameData is updated. Currently doesn't actually sort
-- return GameData.sortByOrderTable(Township.buildings, Township.buildingDisplayOrder)
end
end


572

edits