mirror of
https://github.com/DaInfLoop/Battler-Generator.git
synced 2024-11-24 14:49:58 +00:00
fix but better
This commit is contained in:
parent
0a22af0c30
commit
11693ba803
5
utils.ts
5
utils.ts
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue