GE Lua Documentation

Press F to search!

depthIdSort

Definition


-- @/lua/ge/extensions/gameplay/missions/unlocks.lua:330

M.depthIdSort = function(a,b)
  if not a.unlocks or not b.unlocks or a.unlocks.depth == b.unlocks.depth then
    return a.id < b.id
  else
    return a.unlocks.depth < b.unlocks.depth
  end
end

Callers

@/lua/ge/extensions/freeroam/bigMapMode.lua
end
local function depthIdSort(a,b)
  if not a.unlocks or not b.unlocks or a.unlocks.depth == b.unlocks.depth then