
Baphomet’s Fury
Lv 1AttackPhysical
Instantly deals (1~(Owner BaseLv×Adjustment×5) True Dmg to the current target. The adjustment stacks up to 100 layers.
Range: 2
Formula
1function CommonFun.calcDamage_9006(srcUser, targetUser, params, damageParam, logger)
2 local BaseLv = srcUser.BaseLv
3 local RefineLv = srcUser:GetEquipedRefineLv(7_WEAPON)
4 local B = 0
5 local Num1 = srcUser:GetBuffLayer(24522_CRESCENT_SCYTHE_:MAX_STACK_100)
6 local weapon = srcUser:GetEquipedID(7_WEAPON)
7 local DamIncrease = srcUser:GetProperty("DamIncrease")
8 local DamReduc2 = CommonFun.calcDamReDuc(srcUser, targetUser)
9 local RefineDamReduc = CommonFun.calcRefineDamReduc(srcUser, targetUser)
10 if weapon == 40020 or weapon == 140020 then
11 if 2 <= RefineLv and RefineLv < 4 then
12 B = 0.05
13 elseif 4 <= RefineLv and RefineLv < 6 then
14 B = 0.1
15 elseif 6 <= RefineLv and RefineLv < 8 then
16 B = 0.15
17 elseif 8 <= RefineLv and RefineLv < 10 then
18 B = 0.2
19 elseif 10 <= RefineLv and RefineLv < 12 then
20 B = 0.25
21 elseif 12 <= RefineLv and RefineLv < 14 then
22 B = 0.3
23 elseif 14 <= RefineLv and RefineLv < 16 then
24 B = 0.35
25 elseif 16 <= RefineLv and RefineLv < 18 then
26 B = 0.4
27 elseif 18 <= RefineLv and RefineLv < 20 then
28 B = 0.45
29 elseif RefineLv == 20 then
30 B = 0.5
31 end
32 end
33 local damChangePer = damageParam.damChangePer
34 local raceparam = CommonFun.CalcRaceParam(srcUser, targetUser, params, damageParam, logger)
35 local bodyparam = CommonFun.CalcBodyParam(srcUser, targetUser, params, damageParam, logger)
36 local elementparam = CommonFun.CalcElementParam(srcUser, targetUser, params, damageParam, logger)
37 local bossparam = CommonFun.CalcBossParam(srcUser, targetUser, params, damageParam, logger)
38 local raceparam2 = CommonFun.CalcRaceParam2(srcUser, targetUser, params, damageParam, logger)
39 local bodyparam2 = CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
40 local elementparam2 = CommonFun.CalcElementParam2(srcUser, targetUser, params, damageParam, logger)
41 local bossparam2 = CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
42 local A = math.max(1, BaseLv * Num1 * damChangePer * (1 + B)) * elementparam * elementparam2 * raceparam * bossparam * bossparam2 * (1 - DamReduc2) * (1 - RefineDamReduc) * (1 + DamIncrease)
43 if A <= 1 then
44 return 1
45 end
46 return A
47endPreserved HTML snapshot from ROM Handbook
