feat(game): 新增3个角色、修复实习生攻击特效、加速开发子弹、每波结束自动进入下一波
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user