diff --git a/utils.ts b/utils.ts index 096d8c0..17b510f 100644 --- a/utils.ts +++ b/utils.ts @@ -3,11 +3,12 @@ import { GenerateBattlerOptions, Colour, Opponents, + CommunityOpponents PlayerActions, } from "./types"; export const validColours = Object.entries(Colour).map((x) => x[0]); -export const validOpponents = Object.entries(Opponents).map((x) => x[0]); +export const validOpponents = Object.entries({...Opponents, ... CommunityOpponents}).map((x) => x[0]); export const validPlayerActions = Object.entries(PlayerActions).map((x) => x[1]); export async function generateBattler(