From 5359d045a35a6e69961169ffb5cec8cc378c0e2e Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Mon, 23 Feb 2026 10:27:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E8=83=BD=E6=8D=A1?= =?UTF-8?q?=E6=9C=89=E9=81=93=E5=85=B7=E5=90=8E=E4=BA=8B=E4=BB=B6=E7=89=A9?= =?UTF-8?q?=E5=93=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/plugins.js b/project/plugins.js index 598a4e78..1fa9cd3e 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2009,7 +2009,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = /** * 是否捡拾这个物品 */ - function canGetItem(item, loc, floorId) { + function canGetItem(item, loc, floorId = core.status.floorId) { // 可以用于检测道具是否应该被捡起,例如如果捡起后血量超过80%则不捡起可以这么写: // if (item.cls === 'items') { // let diff = {}; @@ -2035,6 +2035,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = // ) // return false; // } + const floor = core.floors[floorId]; + if (has(floor.afterGetItem[loc])) return false; if (item.cls === 'items') { const itemEffectType = core.getItemEffectType(item.id); if (core.hasFlag('noRouting_HP') && itemEffectType.includes('hp')) return false;