mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-01 07:24:30 +08:00
fix: 构建问题
This commit is contained in:
1 parent
2d613a2de6
commit
f940d8eaad
12 files changed
+57
-1242
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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