feat(game/enemies): 所有怪物子类支持 speedMultiplier/hpMultiplier 参数

This commit is contained in:
Cloud Bot
2026-03-21 09:45:17 +00:00
parent bcfd001c11
commit 185fa39b4e
5 changed files with 45 additions and 28 deletions

View File

@@ -4,8 +4,13 @@ import { GameManager } from '../GameManager'
import { getRandomQuote } from '../data/quotes'
export class TroubleMaker extends EnemyBase {
constructor(scene: Phaser.Scene, pathPoints: PathPoint[]) {
super(scene, pathPoints, 80, 80, 5, 20, 'enemy-trouble')
constructor(
scene: Phaser.Scene,
pathPoints: PathPoint[],
speedMultiplier: number = 1.0,
hpMultiplier: number = 1.0
) {
super(scene, pathPoints, 80, 80, 5, 20, 'enemy-trouble', speedMultiplier, hpMultiplier)
}
protected override onDeath(): void {