pokerogue/src/messages.ts

5 lines
221 B
TypeScript
Raw Normal View History

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