This commit is contained in:
DaInfLoop 2024-08-13 14:27:22 +01:00 committed by GitHub
parent 87be623c97
commit 0a22af0c30
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(