From 305b43e07ccf91758a253a190bcdb2c852d5913b Mon Sep 17 00:00:00 2001 From: ShakeFlower Date: Thu, 12 Feb 2026 17:58:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8D=E6=98=8E=E5=8E=9F=E5=9B=A0?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=5FupdateDamage=5Fdamage=E6=B2=A1=E6=9C=89thi?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/control.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/control.js b/libs/control.js index cad79d19..1c3360b6 100644 --- a/libs/control.js +++ b/libs/control.js @@ -1423,12 +1423,12 @@ control.prototype._updateDamage_damage = function (floorId, onMap) { const defaultData = { leftdown: { 1: 'damage', 2: 'critical' }, rightup: {} }; const data = core.getLocalStorage('displayData', defaultData); - this.pushDamageData(data.leftdown[1], 32 * x + 1, 32 * (y + 1) - 1, blockId, x, y, floorId); - this.pushDamageData(data.leftdown[2], 32 * x + 1, 32 * (y + 1) - 11, blockId, x, y, floorId); - this.pushDamageData(data.leftdown[3], 32 * x + 1, 32 * (y + 1) - 21, blockId, x, y, floorId); - this.pushDamageData(data.rightup[1], 32 * x + 16, 32 * (y + 1) - 21, blockId, x, y, floorId); - this.pushDamageData(data.rightup[2], 32 * x + 16, 32 * (y + 1) - 11, blockId, x, y, floorId); - this.pushDamageData(data.rightup[3], 32 * x + 16, 32 * (y + 1) - 1, blockId, x, y, floorId); + core.control.pushDamageData(data.leftdown[1], 32 * x + 1, 32 * (y + 1) - 1, blockId, x, y, floorId); + core.control.pushDamageData(data.leftdown[2], 32 * x + 1, 32 * (y + 1) - 11, blockId, x, y, floorId); + core.control.pushDamageData(data.leftdown[3], 32 * x + 1, 32 * (y + 1) - 21, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[1], 32 * x + 16, 32 * (y + 1) - 21, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[2], 32 * x + 16, 32 * (y + 1) - 11, blockId, x, y, floorId); + core.control.pushDamageData(data.rightup[3], 32 * x + 16, 32 * (y + 1) - 1, blockId, x, y, floorId); } }); }