Formula

CommonFun.calcAttrStoneTime

formula.lua
1function CommonFun.calcAttrStoneTime(srcUser, targetUser)
2  local Int = srcUser:GetProperty("Int")
3  local Int2 = targetUser:GetProperty("Int")
4  local StateTimeAtk = srcUser:GetProperty("StateTimeAtk")
5  local StateTimeDef2 = targetUser:GetProperty("StateTimeDef")
6  local A = math.min(0.8, Int * 0.3 / 100)
7  local B = math.min(1, Int2 * 0.4 / 100)
8  local Time = 1 + A - B + StateTimeAtk - StateTimeDef2
9  if Time <= 0 then
10    Time = 0
11  end
12  return Time
13end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.calcAttrStoneTime

commonfun-calcattrstonetime

Nodes

0

Edges

0

Related Nodes

Select at least one node type.