mirror of
https://git.haroon.hackclub.app/haroon/Battler-Generator.git
synced 2024-11-09 23:49:38 +00:00
fix but better
This commit is contained in:
parent
0a22af0c30
commit
11693ba803
1 changed files with 4 additions and 1 deletions
5
utils.ts
5
utils.ts
|
@ -8,7 +8,10 @@ import {
|
|||
} from "./types";
|
||||
|
||||
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 async function generateBattler(
|
||||
|
|
Loading…
Reference in a new issue