2024-01-13 09:24:24 -08:00
|
|
|
import { BattleSpec } from "./enums/battle-spec";
|
2024-02-29 17:08:50 -08:00
|
|
|
import Pokemon from "./field/pokemon";
|
2023-04-14 22:32:16 -07:00
|
|
|
|
|
|
|
export function getPokemonMessage(pokemon: Pokemon, content: string): string {
|
2024-01-13 09:24:24 -08:00
|
|
|
let prefix: string;
|
|
|
|
switch (pokemon.scene.currentBattle.battleSpec) {
|
|
|
|
case BattleSpec.DEFAULT:
|
|
|
|
prefix = !pokemon.isPlayer() ? pokemon.hasTrainer() ? 'Foe ' : 'Wild ' : '';
|
|
|
|
break;
|
|
|
|
case BattleSpec.FINAL_BOSS:
|
2024-03-29 22:37:54 -07:00
|
|
|
prefix = !pokemon.isPlayer() ? 'Foe ' : '';
|
2024-01-13 09:24:24 -08:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
return `${prefix}${pokemon.name}${content}`;
|
2023-04-14 22:32:16 -07:00
|
|
|
}
|