mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-16 03:54:31 +08:00
fix: 构建问题
This commit is contained in:
1 parent
2d613a2de6
commit
f940d8eaad
12 files changed
+57
-1242
No files matched your search
@@ -558,19 +558,11 @@ export class HeroMover extends ObjectMoverBase {
|
||||
const showDir = toDir(this.faceDir);
|
||||
|
||||
// 前方不能移动
|
||||
if (
|
||||
code === HeroMoveCode.CannotMove ||
|
||||
code === HeroMoveCode.Hit ||
|
||||
code === HeroMoveCode.LoopHit
|
||||
) {
|
||||
if (code === HeroMoveCode.CannotMove || code === HeroMoveCode.Hit) {
|
||||
controller.stop();
|
||||
this.onCannotMove(showDir);
|
||||
if (code === HeroMoveCode.Hit) {
|
||||
core.trigger(nx, ny);
|
||||
} else if (code === HeroMoveCode.LoopHit) {
|
||||
const floor = core.status.thisMap;
|
||||
if (x === 0) core.trigger(floor.width - 1, y);
|
||||
else core.trigger(0, y);
|
||||
}
|
||||
core.checkRouteFolding();
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user