20 lines
672 B
TypeScript
20 lines
672 B
TypeScript
import type Phaser from 'phaser'
|
|
import { EnemyBase, type PathPoint } from './EnemyBase'
|
|
import { getRandomQuote } from '../data/quotes'
|
|
|
|
export class OldEmployee extends EnemyBase {
|
|
constructor(
|
|
scene: Phaser.Scene,
|
|
pathPoints: PathPoint[],
|
|
speedMultiplier: number = 1.0,
|
|
hpMultiplier: number = 1.0
|
|
) {
|
|
// HP: 150→240, speed: 50→65, kpiDamage: 8→12, hcReward: 30→22, shield: 3→4
|
|
super(scene, pathPoints, 240, 65, 12, 22, 'enemy-old', speedMultiplier, hpMultiplier)
|
|
this.shieldCount = 4
|
|
this.imageSprite.setDisplaySize(this.cellW * 0.85, this.cellW * 0.85)
|
|
}
|
|
|
|
getQuote(): string { return getRandomQuote('OldEmployee') }
|
|
}
|