Formula

CommonFun.calcAttrCurseTime

formula.lua
1function CommonFun.calcAttrCurseTime(srcUser, targetUser)
2  local Str = srcUser:GetProperty("Str")
3  local Int = targetUser:GetProperty("Int")
4  local StateTimeAtk = srcUser:GetProperty("StateTimeAtk")
5  local StateTimeDef2 = targetUser:GetProperty("StateTimeDef")
6  local A = math.min(1, Str * 0.3 / 100)
7  local B = math.min(1, Int * 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.calcAttrCurseTime

commonfun-calcattrcursetime

Nodes

0

Edges

0

Related Nodes

Select at least one node type.