Files
test1/game/enemies/FreshGraduate.ts

18 lines
658 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type Phaser from 'phaser'
import { EnemyBase, type PathPoint } from './EnemyBase'
import { getRandomQuote } from '../data/quotes'
export class FreshGraduate extends EnemyBase {
constructor(
scene: Phaser.Scene,
pathPoints: PathPoint[],
speedMultiplier: number = 1.0,
hpMultiplier: number = 1.0
) {
// HP: 40, speed: 130, kpiDamage: 2.5→取整3不行用整数2, hcReward: 9
// kpiDamage 用浮点:在 GameManager.reduceKPI 里用 Math.max(0, kpi - amount)
super(scene, pathPoints, 40, 130, 2, 9, 'enemy-fresh', speedMultiplier, hpMultiplier)
}
getQuote(): string { return getRandomQuote('FreshGraduate') }
}