Formula

CommonFun.NpcParam

formula.lua
1function CommonFun.NpcParam(srcUser, targetUser, params, damageParam, logger)
2  local NpcDamPer = 0
3  local NpcResPer = 0
4  if targetUser:GetNpcID() == 0 or targetUser:GetNpcID() == 580210_MIND_BODY then
5    NpcDamPer = srcUser:GetProperty("NpcDamPer")
6    NpcResPer = targetUser:GetProperty("NpcResPer")
7  end
8  local A = 1 + NpcDamPer - NpcResPer
9  if A <= 0.15 then
10    A = 0.15
11  end
12  return A
13end
Formula Graph

Connected Archive Data

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

Loading graph filters

CommonFun.NpcParam

commonfun-npcparam

Nodes

0

Edges

0

Related Nodes

Select at least one node type.