fix but better

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

View file

@ -8,7 +8,10 @@ import {
} from "./types"; } from "./types";
export const validColours = Object.entries(Colour).map((x) => x[0]); export const validColours = Object.entries(Colour).map((x) => x[0]);
export const validOpponents = Object.entries({...Opponents, ... CommunityOpponents}).map((x) => x[0]); export const validOpponents = [
...Object.entries(Opponents).map((x) => x[0]),
...Object.entries(CommunityOpponents).map((x) => x[0])
];
export const validPlayerActions = Object.entries(PlayerActions).map((x) => x[1]); export const validPlayerActions = Object.entries(PlayerActions).map((x) => x[1]);
export async function generateBattler( export async function generateBattler(