mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-30 12:12:28 +02:00
fix: type choices only contain types
the "exit" option is added separately Co-authored-by: NightKev <34855794+DayKev@users.noreply.github.com>
This commit is contained in:
parent
dd12482180
commit
ac68f5d8c1
@ -14,6 +14,7 @@ import { fileURLToPath } from "url";
|
|||||||
// Get the directory name of the current module file
|
// Get the directory name of the current module file
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
|
const typeChoices = ["Move", "Ability", "Item"];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user to select a type via list.
|
* Prompts the user to select a type via list.
|
||||||
@ -25,7 +26,7 @@ async function promptTestType() {
|
|||||||
type: "list",
|
type: "list",
|
||||||
name: "selectedOption",
|
name: "selectedOption",
|
||||||
message: "What type of test would you like to create:",
|
message: "What type of test would you like to create:",
|
||||||
choices: ["Move", "Ability", "Item", "EXIT"],
|
choices: [...typeChoices, "EXIT"],
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user