GE Lua Documentation

Press F to search!

getXPNeededForLevel

Definition


-- @/lua/ge/extensions/career/branches.lua:352

local function getXPNeededForLevel(id, level)
  local branch = getBranchByPath(id)
  if branch.id == 'missing' then return nil end
  local levels = branch.levels or {}
  if not levels[level] then return -1 end
  return levels[level].requiredValue
end

Callers

@/lua/ge/extensions/career/modules/branches/leagues.lua
      local level = career_branches.getBranchLevel(condition.skillId)
      local neededForLevel = career_branches.getXPNeededForLevel(condition.skillId, condition.level)
      local xp = career_branches.getBranchXP(condition.skillId)