CommonFun

CommonFun.CalcRiftJobExp

Dataset · 20251127_update

Formula Source

function CommonFun.CalcRiftJobExp(lv, maxlv, difficulty, speed_per, ratio, raidtype)
  local calclv = lv
  local diffpara = 1
  if raidtype == 65 then
    if maxlv < calclv then
      calclv = maxlv
    end
    if difficulty == 2 then
      diffpara = 1.1
    elseif difficulty == 3 or difficulty == 4 then
      diffpara = 1.2
    end
  end
  local JobExp = math.floor(CommonFun.GetJobParam(calclv) * speed_per * diffpara * ratio)
  if JobExp < 0 then
    return 0
  end
  return JobExp
end
No formula links

Version History

Loading dependencies...
Loading usage...