mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
修复跳跃bug
This commit is contained in:
parent
c3ae675537
commit
9db03e998e
@ -45,20 +45,14 @@ export function jumpSkill() {
|
|||||||
if (!flags.skill2) return;
|
if (!flags.skill2) return;
|
||||||
if (!flags['jump_' + core.status.floorId])
|
if (!flags['jump_' + core.status.floorId])
|
||||||
flags['jump_' + core.status.floorId] = 0;
|
flags['jump_' + core.status.floorId] = 0;
|
||||||
if (
|
if (core.status.floorId == 'MT14') {
|
||||||
core.status.floorId == 'MT14' &&
|
const loc = core.status.hero.loc;
|
||||||
flags['jump_' + core.status.floorId] == 2 &&
|
if (loc.x === 77 && loc.y === 5) {
|
||||||
!flags.MT14Jump
|
flags.MT14Jump = true;
|
||||||
) {
|
}
|
||||||
if (
|
if (flags.jump_MT14 === 2 && !flags.MT14Jump) {
|
||||||
!(
|
|
||||||
core.status.hero.loc.x === 77 &&
|
|
||||||
core.status.hero.loc.y === 5 &&
|
|
||||||
core.status.hero.loc.direction === 'right'
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
return core.drawTip('该地图还有一个必跳的地方,你还没有跳');
|
return core.drawTip('该地图还有一个必跳的地方,你还没有跳');
|
||||||
} else flags.MT14Jump = true;
|
}
|
||||||
}
|
}
|
||||||
if (flags['jump_' + core.status.floorId] >= 3)
|
if (flags['jump_' + core.status.floorId] >= 3)
|
||||||
return core.drawTip('当前地图使用次数已用完');
|
return core.drawTip('当前地图使用次数已用完');
|
||||||
|
2
src/types/status.d.ts
vendored
2
src/types/status.d.ts
vendored
@ -941,7 +941,7 @@ interface HeroStatus {
|
|||||||
/**
|
/**
|
||||||
* 勇士当前的位置
|
* 勇士当前的位置
|
||||||
*/
|
*/
|
||||||
loc: Loc;
|
loc: DiredLoc;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 当前的变量
|
* 当前的变量
|
||||||
|
Loading…
Reference in New Issue
Block a user