mirror of
https://github.com/DaInfLoop/Battler-Generator.git
synced 2024-11-09 23:59:56 +00:00
fix
This commit is contained in:
parent
87be623c97
commit
0a22af0c30
3
utils.ts
3
utils.ts
|
@ -3,11 +3,12 @@ import {
|
||||||
GenerateBattlerOptions,
|
GenerateBattlerOptions,
|
||||||
Colour,
|
Colour,
|
||||||
Opponents,
|
Opponents,
|
||||||
|
CommunityOpponents
|
||||||
PlayerActions,
|
PlayerActions,
|
||||||
} 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).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 const validPlayerActions = Object.entries(PlayerActions).map((x) => x[1]);
|
||||||
|
|
||||||
export async function generateBattler(
|
export async function generateBattler(
|
||||||
|
|
Loading…
Reference in a new issue