feat(game): 新增3个角色、修复实习生攻击特效、加速开发子弹、每波结束自动进入下一波

This commit is contained in:
Cloud Bot
2026-03-24 07:47:41 +00:00
parent 300f4c432f
commit c8b8c7109f
9 changed files with 392 additions and 66 deletions

View File

@@ -63,6 +63,7 @@ export abstract class EnemyBase {
public slowEffect: number = 0
public slowTimer: number = 0
public shieldCount: number = 0
public hcRewardBonus: boolean = false // 运营专员「增长黑客」双倍HC标记
protected cellW: number
protected cellH: number
@@ -215,10 +216,18 @@ export abstract class EnemyBase {
this.slowTimer = Math.max(this.slowTimer, duration)
}
/** 需求变更:将路径进度回退 n 个节点PM 特殊技能) */
rewindPath(steps: number): void {
this.currentPathIndex = Math.max(0, this.currentPathIndex - steps)
const target = this.pathPoints[this.currentPathIndex]
if (target) { this.x = target.x; this.y = target.y }
}
protected die(): void {
if (this.isDead) return
this.isDead = true
GameManager.getInstance().addHC(this.hcReward)
const reward = this.hcRewardBonus ? this.hcReward * 2 : this.hcReward
GameManager.getInstance().addHC(reward)
this.onDeath()
this.destroy()
}