mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-01 12:19:29 +02:00
add: mystery encounter to create-test
This commit is contained in:
parent
4c9c66f898
commit
b482d7064c
@ -14,7 +14,7 @@ import { fileURLToPath } from "url";
|
||||
// Get the directory name of the current module file
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
const typeChoices = ["Move", "Ability", "Item"];
|
||||
const typeChoices = ["Move", "Ability", "Item", "Mystery Encounter"];
|
||||
|
||||
/**
|
||||
* Prompts the user to select a type via list.
|
||||
@ -96,6 +96,10 @@ async function runInteractive() {
|
||||
dir = path.join(__dirname, "src", "test", "items");
|
||||
description = `Items - ${formattedName}`;
|
||||
break;
|
||||
case "mystery encounter":
|
||||
dir = path.join(__dirname, "src", "test", "mystery-encounter", "encounters");
|
||||
description = `Mystery Encounter - ${formattedName}`;
|
||||
break;
|
||||
default:
|
||||
console.error('Invalid type. Please use "move", "ability", or "item".');
|
||||
process.exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user