From 22c1ff5a4d2cd74a92549942b42da45faf4f1c63 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Sat, 28 Sep 2024 15:52:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=BD=E7=8C=8E=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/project/floors/MT91.js | 26 +++++++++++++------------- src/game/state/move.ts | 3 +-- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/public/project/floors/MT91.js b/public/project/floors/MT91.js index b60f3b1..2b953c4 100644 --- a/public/project/floors/MT91.js +++ b/public/project/floors/MT91.js @@ -35,19 +35,19 @@ main.floors.MT91= "cannotMoveIn": {}, "map": [ [648,648,648,648,648,648,648,648,648,648,648,648,648,648,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [ 92, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], - [648, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,648], + [648, 0, 0, 0,648, 0, 0, 0, 0, 0, 0, 0,648, 0,648], + [648, 0, 0, 0, 0, 0, 0,648,648,648, 0, 0,648, 0,648], + [648,648,648,648,648,648,648,648, 0,648, 0,648,648, 0,648], + [648, 0,648, 0, 0, 0, 0, 0, 0,648, 0, 0, 0, 0,648], + [648, 0, 0, 0,648, 0,648,648,648,648, 0,648,648,648,648], + [648,648,648,648,648, 0, 0, 0, 0, 0, 0,648, 0, 0,648], + [ 92, 0, 0, 0,648, 0,648,648, 0,648, 0,648, 0, 0, 94], + [648, 0, 0, 0, 0, 0, 0,648, 0,648,648,648, 0,648,648], + [648,648,648,648,648,648, 0,648, 0, 0, 0, 0, 0, 0,648], + [648, 0, 0, 0, 0, 0, 0,648, 0, 0,648, 0,648, 0,648], + [648, 0,648,648, 0,648,648,648,648,648,648, 0,648, 0,648], + [648, 0, 0,648, 0,648, 0, 0, 0,648, 0, 0,648, 0,648], + [648, 0, 0,648, 0,648, 0, 0, 0, 0, 0, 0,648, 0,648], [648,648,648,648,648,648,648, 93,648,648,648,648,648,648,648] ], "bgmap": [ diff --git a/src/game/state/move.ts b/src/game/state/move.ts index 5d0cd7d..cb5aaf3 100644 --- a/src/game/state/move.ts +++ b/src/game/state/move.ts @@ -425,8 +425,7 @@ export class HeroMover extends ObjectMoverBase { const map = core.status.thisMap.enemy.mapDamage; const dam = map[index]; const nextDam = map[nIndex]; - if (!dam) return false; - if (nextDam.mockery || (!dam.hunt && nextDam.hunt)) { + if (nextDam?.mockery || (!dam?.hunt && nextDam?.hunt)) { core.autosave(); return true; }