Formula

CommonFun.calcBuff_3350

formula.lua
1function CommonFun.calcBuff_3350(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 == 44032_LUK_NECKLACE_LUK_NECKLACE or Ring1 == 144032_LUK_NECKLACE_1_LUK_NECKLACE_1) and 12 <= RefineLv1 and 4 <= order1 then
15    a = 0.04
16  end
17  if (Ring2 == 44032_LUK_NECKLACE_LUK_NECKLACE or Ring2 == 144032_LUK_NECKLACE_1_LUK_NECKLACE_1) and 12 <= RefineLv2 and 4 <= order2 then
18    b = 0.04
19  end
20  if (Ring1 == 44032_LUK_NECKLACE_LUK_NECKLACE or Ring1 == 144032_LUK_NECKLACE_1_LUK_NECKLACE_1) and (Ring2 == 44032_LUK_NECKLACE_LUK_NECKLACE or Ring2 == 144032_LUK_NECKLACE_1_LUK_NECKLACE_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_3350

commonfun-calcbuff_3350

Nodes

0

Edges

0

Related Nodes

Select at least one node type.