public static void AppWeakCalculate(EntityParent caster, EntityParent target, XDict <AttrType, long> casterTempAttrs) { if (target.IsWeak) { return; } int num = target.Vp - BattleCalculator.CalculateWeak(caster.BattleBaseAttrs, casterTempAttrs); if (num < 0) { num = 0; } else if (num > target.RealVpLmt) { num = target.RealVpLmt; } target.SetValue(AttrType.Vp, num, true); }