Cart Termination

Cart Termination

Lv 10Attack

Range: 3

Skill Levels

Lvl: 9
Attack
Range: 3

Lvl: 8
Attack
Range: 3

Lvl: 7
Attack
Range: 3

Lvl: 6
Attack
Range: 3

Lvl: 5
Attack
Range: 3

Lvl: 4
Attack
Range: 3

Lvl: 3
Attack
Range: 3

Lvl: 2
Attack
Range: 3

Lvl: 1
Attack
Range: 3

Formula

1function CommonFun.calcDamage_60(srcUser, targetUser, params, damageParam, logger)
2  local Str = srcUser:GetProperty("Str")
3  local Dex = srcUser:GetProperty("Dex")
4  local Luk = srcUser:GetProperty("Luk")
5  local Atk = srcUser:GetProperty("Atk")
6  local AtkPer = srcUser:GetProperty("AtkPer")
7  local DamIncrease = srcUser:GetProperty("DamIncrease")
8  local IgnoreDef = 0
9  local IgnoreDef1 = srcUser:GetProperty("IgnoreDef")
10  local IgnoreDef2 = srcUser:GetProperty("IgnoreEquipDef")
11  if targetUser.boss or targetUser.mini then
12    IgnoreDef = IgnoreDef1
13  else
14    IgnoreDef = IgnoreDef1 + IgnoreDef2
15  end
16  if 1 <= IgnoreDef then
17    IgnoreDef = 1
18  end
19  local Refine = srcUser:GetProperty("Refine")
20  local Def2 = targetUser:GetProperty("Def")
21  local DefPer2 = targetUser:GetProperty("DefPer")
22  local Vit2 = targetUser:GetProperty("Vit")
23  local VitPer2 = targetUser:GetProperty("VitPer")
24  local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
25  local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
26  local damChangePer = damageParam.damChangePer
27  local skilllv_1 = srcUser:GetLernedSkillLevel(266_LORD_KNIGHT:ENHANCED_CART)
28  local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
29  local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
30  local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
31  local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
32  local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
33  local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
34  local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
35  local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
36  local BaseAtk = Str * 2 + math.floor(Str * Str / 100) + math.floor(Dex / 5) + math.floor(Luk / 5)
37  local AtkFinal = ((Atk - BaseAtk + skilllv_1 * 15) * (1 + AtkPer) * CommonFun.ShapeCorrection(srcUser, targetUser) * bodyparam * elementparam * elementparam2 + BaseAtk) * raceparam * bossparam * bossparam2
38  local DefReduc = CommonFun.CalcDef(srcUser, targetUser)
39  local ShortRangeDamReduc2 = targetUser:GetProperty("ShortRangeDamReduc")
40  local A = (AtkFinal * DefReduc * (1 - DamReduc2) + Refine) * damChangePer * (1 - RefineDamReduc) * (1 + DamIncrease - ShortRangeDamReduc2) - Vit2 * (1 + VitPer2)
41  if A <= 1 then
42    return 1
43  end
44  return A
45end
Preserved HTML snapshot from ROM Handbook