CommonFun

CommonFun.CalcBodyParam2

Dataset · 20251127_update

Formula Source

function CommonFun.CalcBodyParam2(srcUser, targetUser, params, damageParam, logger)
  local bodyInc = 0
  local bodyRed = 0
  local srcShape = srcUser.shape
  local targetShape = targetUser.shape
  bodyInc = srcUser:GetProperty(CommonFun.ShapeProps[targetShape][1])
  bodyRed = targetUser:GetProperty(CommonFun.ShapeProps[srcShape][2])
  local result = 1 - bodyRed
  if result <= 0.15 then
    result = 0.15
  end
  return result
end
No formula links

Version History

Loading dependencies...
Loading usage...