fix: 构建问题

This commit is contained in:
AncTe committed 2025-10-12 13:15:05 +08:00
1 parent 2d613a2de6
commit f940d8eaad
12 files changed
+57 -1242

No files matched your search

+3 -5
View File
@@ -633,9 +633,7 @@ export class DamageEnemy implements IDamageEnemy {
if (
block &&
block.event.noPass &&
block.event.cls !== 'enemys' &&
block.id !== 141 &&
block.id !== 151
block.event.cls !== 'enemys'
) {
break;
}
@@ -874,7 +872,7 @@ export class DamageEnemy implements IDamageEnemy {
}
// 霜冻
if (info.special.has(20) && !core.hasEquip('I589')) {
if (info.special.has(20)) {
return (
info.def +
info.hp / (1 - this.enemy.ice! / 100) -
@@ -951,7 +949,7 @@ export function calDamageWith(
}
// 霜冻
if (special.has(20) && !core.hasEquip('I589')) {
if (special.has(20)) {
heroPerDamage *= 1 - info.ice! / 100;
}
+1 -9
View File
@@ -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;