Formula

CommonFun.CalcBossParam2

formula.lua
1function CommonFun.CalcBossParam2(srcUser, targetUser, params, damageParam, logger)
2  local bossRed = 0
3  local MonsterResPer = 0
4  if srcUser.boss or srcUser.mini then
5    bossRed = targetUser:GetProperty("BossResPer")
6  end
7  if srcUser.boss == false and srcUser.mini == false and srcUser:GetNpcID() ~= 0 then
8    MonsterResPer = targetUser:GetProperty("MonsterResPer")
9  end
10  local result = 1 - bossRed - MonsterResPer
11  if result <= 0.1 then
12    result = 0.1
13  end
14  return result
15end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.CalcBossParam2

commonfun-calcbossparam

Nodes

0

Edges

0

Related Nodes

Select at least one node type.