pokerogue/src/messages.ts

5 lines
221 B
TypeScript
Raw Normal View History

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