15 lines
526 B
TypeScript
15 lines
526 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[]) {
|
||
super(scene, pathPoints, 150, 50, 8, 30, 'enemy-old')
|
||
this.shieldCount = 3
|
||
// 老员工比普通怪略大(0.85 个格子)
|
||
this.imageSprite.setDisplaySize(this.cellW * 0.85, this.cellW * 0.85)
|
||
}
|
||
|
||
getQuote(): string { return getRandomQuote('OldEmployee') }
|
||
}
|