From 0a22af0c30e932e99218530d4c2a671897f7b003 Mon Sep 17 00:00:00 2001 From: DaInfLoop Date: Tue, 13 Aug 2024 14:27:22 +0100 Subject: [PATCH] fix --- utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(