20 lines
648 B
TypeScript
20 lines
648 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: 180, speed: 55, kpiDamage: 10, hcReward: 25, shield: 3
|
|
super(scene, pathPoints, 180, 55, 10, 25, 'enemy-old', speedMultiplier, hpMultiplier)
|
|
this.shieldCount = 3
|
|
this.imageSprite.setDisplaySize(this.cellW * 0.85, this.cellW * 0.85)
|
|
}
|
|
|
|
getQuote(): string { return getRandomQuote('OldEmployee') }
|
|
}
|