From 725a598bb46114a114b74a47a6d8c56b72b5ddc2 Mon Sep 17 00:00:00 2001 From: mengyxu Date: Sun, 20 Apr 2025 17:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=BC=BA=E5=8C=9612=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E7=8E=87=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tool/caller.ts | 4 +++- src/views/backpack/strengthen.vue | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tool/caller.ts b/src/tool/caller.ts index c4d562d..8f7c374 100644 --- a/src/tool/caller.ts +++ b/src/tool/caller.ts @@ -63,7 +63,9 @@ export const callPlayerAttribute = (playerAttribute: any, rA: any) => { critdmg = attribute.critDmg / 100; attribute.dps = Math.ceil((1 - crit + crit * critdmg) * atk); //计算减伤比例 - attribute.reducPercent = (0.5 * attribute.def) / (35 + 0.55 * attribute.def) + (0.06 * attribute.def) / (attribute.def + 200); + 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; }; diff --git a/src/views/backpack/strengthen.vue b/src/views/backpack/strengthen.vue index 292e184..db8c100 100644 --- a/src/views/backpack/strengthen.vue +++ b/src/views/backpack/strengthen.vue @@ -125,7 +125,7 @@ const strengthen = () => { let idx = lv - successLv - 1; const len = rates.length; idx = idx > len ? len : idx; - rate = rates[idx]; + rate = rates[idx] || 0.2; } if (Math.random() < rate) { prop.equip.strengthenLv++