From ce1435be3a95bcf5676203d8abbaaafe7f78e347 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 14 Oct 2025 14:06:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A3=85=E5=A4=87=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/legacy-ui/src/tools/equipbox.tsx | 5 +++-- public/project/floors/sample1.js | 20 -------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/packages/legacy-ui/src/tools/equipbox.tsx b/packages/legacy-ui/src/tools/equipbox.tsx index 839fb00..6e7e879 100644 --- a/packages/legacy-ui/src/tools/equipbox.tsx +++ b/packages/legacy-ui/src/tools/equipbox.tsx @@ -25,7 +25,7 @@ export function getAddStatus(equip: Equip) { const value = Math.floor( (equip.value[v] ?? 0) * core.getBuff(v) + (core.status.hero[v as keyof HeroStatus] * - (equip.percentage[v] ?? 0)) / + (equip.percentage?.[v] ?? 0)) / 100 ); @@ -77,7 +77,8 @@ export function getNowStatus(nowEquip?: Equip, onCol: boolean = false) { (nowEquip.value[v] ?? 0) * core.getBuff(v) ); const per = Math.floor( - (nowEquip.percentage[v] * core.getStatus(v)) / 100 + ((nowEquip.percentage?.[v] ?? 0) * core.getStatus(v)) / + 100 ); add += isNaN(per) ? 0 : per; } diff --git a/public/project/floors/sample1.js b/public/project/floors/sample1.js index d1142f2..af2341a 100644 --- a/public/project/floors/sample1.js +++ b/public/project/floors/sample1.js @@ -865,26 +865,6 @@ main.floors.sample1= "icon": "man", "text": "试着给我添加一个隐藏事件让我消失吧!" } - ], - "5,9": [ - { - "type": "choices", - "text": "选择剑或者盾 11111111111111111111 111111111111111", - "choices": [ - { - "text": "剑", - "action": [ - { - "type": "openDoor", - "loc": [ - 3, - 3 - ] - } - ] - } - ] - } ] }, "changeFloor": {