Formula

CommonFun.calcBuff_2042

formula.lua
1function CommonFun.calcBuff_2042(srcUser, targetUser, a, b, c, d, lv)
2  if srcUser == nil or targetUser == nil then
3    return 0
4  end
5  local A = 0
6  local equipRing = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_EQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
7  if (equipRing.id == 42087 or equipRing.id == 142087) and srcUser:HasBuffID(90000653_CROCE_STAFF_1_TIER_4_:MAX_STACK_0) then
8    if equipRing.refinelv >= 10 then
9      A = 0.1
10    else
11      A = 0.05
12    end
13  end
14  local equipRingSD = srcUser:getEquip(CommonFun.PackType.EPACKTYPE_SHADOWEQUIP, CommonFun.EquipPos.EEQUIPPOS_ARMOUR)
15  if (equipRingSD.id == 42087 or equipRingSD.id == 142087) and srcUser:HasBuffID(90000653_CROCE_STAFF_1_TIER_4_:MAX_STACK_0) then
16    if equipRingSD.refinelv >= 10 then
17      A = 0.1
18    else
19      A = 0.05
20    end
21  end
22  return A
23end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcBuff_2042

commonfun-calcbuff_2042

Nodes

0

Edges

0

Related Nodes

Select at least one node type.