From 30f5d89283397c85f5659189e9f87e8a53143e14 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sun, 20 Apr 2025 18:05:24 +0800 Subject: [PATCH] Update caller.ts --- src/tool/caller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tool/caller.ts b/src/tool/caller.ts index 8f7c374..f0464fd 100644 --- a/src/tool/caller.ts +++ b/src/tool/caller.ts @@ -63,9 +63,9 @@ export const callPlayerAttribute = (playerAttribute: any, rA: any) => { critdmg = attribute.critDmg / 100; attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk); //计算减伤比例 - attribute.def = 500; -// attribute.reducPercent = (0.5 * attribute.def) / (35 + 0.55 * attribute.def) + (0.09 * attribute.def) / (attribute.def + 200); - attribute.reducPercent = (0.5 * attribute.def) / (200 + 0.502 * attribute.def); +// attribute.def = 500; + attribute.reducPercent = (0.5 * attribute.def) / (35 + 0.55 * attribute.def) + (0.09 * attribute.def) / (attribute.def + 200); +// attribute.reducPercent = (0.5 * attribute.def) / (200 + 0.502 * attribute.def); return attribute; };