UNPKG

isaacscript

Version:

A command line tool for managing Isaac mods written in TypeScript.

16 lines 566 B
import { fatalError } from "complete-node"; import { getInputInt } from "../../prompt.js"; export async function getSaveSlot(saveSlotOption, yes) { if (saveSlotOption !== undefined) { return saveSlotOption; } if (yes) { return 1; } const saveSlot = await getInputInt("In-game, will you test your mod on save slot 1, 2, or 3?"); if (saveSlot !== 1 && saveSlot !== 2 && saveSlot !== 3) { fatalError("Error: You must choose a number between 1 and 3."); } return saveSlot; } //# sourceMappingURL=getSaveSlot.js.map