pokerogue/src/messages.ts

5 lines
221 B
TypeScript
Raw Normal View History

2023-04-19 21:52:14 +01:00
import Pokemon from "./pokemon";
2023-04-15 06:32:16 +01:00
export function getPokemonMessage(pokemon: Pokemon, content: string): string {
return `${!pokemon.isPlayer() ? pokemon.hasTrainer() ? 'Foe ' : 'Wild ' : ''}${pokemon.name}${content}`;
2023-04-15 06:32:16 +01:00
}