From 9db03e998e69ccc8eaf31bb4c9e05242450da63a Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Thu, 20 Apr 2023 21:08:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=B7=B3=E8=B7=83bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/project/plugin/skills.js | 20 +++++++------------- src/types/status.d.ts | 2 +- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/public/project/plugin/skills.js b/public/project/plugin/skills.js index 9d56393..711f6de 100644 --- a/public/project/plugin/skills.js +++ b/public/project/plugin/skills.js @@ -45,20 +45,14 @@ export function jumpSkill() { if (!flags.skill2) return; if (!flags['jump_' + core.status.floorId]) flags['jump_' + core.status.floorId] = 0; - if ( - core.status.floorId == 'MT14' && - flags['jump_' + core.status.floorId] == 2 && - !flags.MT14Jump - ) { - if ( - !( - core.status.hero.loc.x === 77 && - core.status.hero.loc.y === 5 && - core.status.hero.loc.direction === 'right' - ) - ) { + if (core.status.floorId == 'MT14') { + const loc = core.status.hero.loc; + if (loc.x === 77 && loc.y === 5) { + flags.MT14Jump = true; + } + if (flags.jump_MT14 === 2 && !flags.MT14Jump) { return core.drawTip('该地图还有一个必跳的地方,你还没有跳'); - } else flags.MT14Jump = true; + } } if (flags['jump_' + core.status.floorId] >= 3) return core.drawTip('当前地图使用次数已用完'); diff --git a/src/types/status.d.ts b/src/types/status.d.ts index 57eeee0..2e68ed2 100644 --- a/src/types/status.d.ts +++ b/src/types/status.d.ts @@ -941,7 +941,7 @@ interface HeroStatus { /** * 勇士当前的位置 */ - loc: Loc; + loc: DiredLoc; /** * 当前的变量