Formula

CommonFun.calcBuff_2230

formula.lua
1function CommonFun.calcBuff_2230(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local Ring1 = srcUser:GetEquipedID(5_ACCESSORY)
6  local RefineLv1 = srcUser:GetEquipedRefineLv(5_ACCESSORY)
7  local Ring2 = srcUser:GetEquipedID(6_ACCESSORY)
8  local RefineLv2 = srcUser:GetEquipedRefineLv(6_ACCESSORY)
9  local order1 = srcUser:getEquipLv(5)
10  local order2 = srcUser:getEquipLv(6)
11  local a = 0
12  local b = 0
13  local c = 1
14  if (Ring1 == 44008_EYE_OF_DULLAHAN_EYE_OF_DULLAHAN or Ring1 == 144008_EYE_OF_DULLAHAN_1_EYE_OF_DULLAHAN_1) and 10 <= RefineLv1 and 4 <= order1 then
15    a = RefineLv1 / 100
16  end
17  if (Ring2 == 44008_EYE_OF_DULLAHAN_EYE_OF_DULLAHAN or Ring2 == 144008_EYE_OF_DULLAHAN_1_EYE_OF_DULLAHAN_1) and 10 <= RefineLv2 and 4 <= order2 then
18    b = RefineLv2 / 100
19  end
20  if (Ring1 == 44008_EYE_OF_DULLAHAN_EYE_OF_DULLAHAN or Ring1 == 144008_EYE_OF_DULLAHAN_1_EYE_OF_DULLAHAN_1) and (Ring2 == 44008_EYE_OF_DULLAHAN_EYE_OF_DULLAHAN or Ring2 == 144008_EYE_OF_DULLAHAN_1_EYE_OF_DULLAHAN_1) and 4 <= order1 and 4 <= order2 then
21    c = 2
22  end
23  local A = (a + b) / c
24  return A
25end
Formula Graph

Connected Archive Data

See which cards, equipment, headwears, buffs, and other archived records connect to this formula.

Loading graph filters

CommonFun.calcBuff_2230

commonfun-calcbuff_2230

Nodes

0

Edges

0

Related Nodes

Select at least one node type.