mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-04 13:49:32 +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
|
// 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"];
|
const typeChoices = ["Move", "Ability", "Item", "Mystery Encounter"];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user to select a type via list.
|
* Prompts the user to select a type via list.
|
||||||
@ -96,6 +96,10 @@ async function runInteractive() {
|
|||||||
dir = path.join(__dirname, "src", "test", "items");
|
dir = path.join(__dirname, "src", "test", "items");
|
||||||
description = `Items - ${formattedName}`;
|
description = `Items - ${formattedName}`;
|
||||||
break;
|
break;
|
||||||
|
case "mystery encounter":
|
||||||
|
dir = path.join(__dirname, "src", "test", "mystery-encounter", "encounters");
|
||||||
|
description = `Mystery Encounter - ${formattedName}`;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
console.error('Invalid type. Please use "move", "ability", or "item".');
|
console.error('Invalid type. Please use "move", "ability", or "item".');
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
Loading…
Reference in New Issue
Block a user