From 5a0ecd278aee2c5f2786169f04eea54ee622c0eb Mon Sep 17 00:00:00 2001 From: UCPr <2032385471@qq.com> Date: Thu, 24 Apr 2025 13:47:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DS=E7=BA=A7=E4=BB=A5=E4=B8=8B?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E7=9B=98=E8=AF=8D=E6=9D=A1=E6=95=B0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=20fix=20#113?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/score.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/score.js b/lib/score.js index f5b3963..e883e69 100644 --- a/lib/score.js +++ b/lib/score.js @@ -50,5 +50,5 @@ for (const charName in equipScore) { export const getEquipPropertyEnhanceCount = (propertyID, value) => { const baseValue = baseValueData[propertyID]; value = +value.replace('%', ''); - return value / baseValue - 1 || 0; + return Math.trunc(value / baseValue - 1 || 0); };