More changes to menuing, added a basic inventory

system
This commit is contained in:
Caroline Foy 2025-03-10 12:05:17 -05:00
parent f732586c24
commit 6ca88b7c6f
4 changed files with 90 additions and 12 deletions

View file

@ -1,12 +1,10 @@
//For testing purposes
const moreTestingShite = require("./poiscreens.js");
// Program is started from here, runs functions from other files.
const variables = require("./variables.js");
const game = require("./game.js");
const shops = require("./shops");
const readline = require('node:readline');
const encounterMenus = require("./poiscreens.js");
const inventoryStuff = require("./inventory.js");
console.clear();
console.log("__________________________________________________________________________________________________________________________________");
@ -23,6 +21,7 @@ console.log("--------------------------");
console.log("1) Start new game");
console.log("2) Learn How to play");
console.log("3) Quit Game");
console.log("4) Dev stuff for testing");
var mainMenuInput = variables.userInput("Enter: ")
@ -31,7 +30,6 @@ switch(mainMenuInput) {
startGame();
break;
case "2":
moreTestingShite.beginTesting();
console.log("Follow the link below for a game manual.")
console.log("[ENTER LINK HERE]")
break;
@ -39,6 +37,9 @@ switch(mainMenuInput) {
console.log("Quitting Game...");
variables.sleep(1000);
break;
case "4":
inventoryStuff.inventoryMenuM();
break;
}
function startGame() { // So far what I have is filler and testing, feel free to change.
@ -49,9 +50,9 @@ function startGame() { // So far what I have is filler and testing, feel free to
variables.sleep(2000);
console.clear();
console.log("Intro:");
console.log("You are an ordinary loyal Enclave Soldier working at Raven Rock. \nYou are typing away at your terminal, entering reports of recovered materials when a message flashes on it.\n\nDear "+variables.name+" ,\n\n This is a direct order from the Enclave High Command. \nIgnore all previous directives. Proceed to Camp Navarro immediately. \nSeek safe passage through the Brotherhood and NCR territories. \nDo not disclose your mission to anyone but Enclave Personel with \nsecurity clearance 5 or higher. Reqisition supplies before departure. \n\n Signed, President John Henry Eden\n\n");
console.log("You are an ordinary loyal Enclave Soldier working at Raven Rock. \nYou are typing away at your terminal, entering reports of recovered materials when a message flashes on it.\n\nDear "+variables.name+",\n\n This is a direct order from the Enclave High Command. \nIgnore all previous directives. Proceed to Camp Navarro immediately. \nSeek safe passage through the Brotherhood and NCR territories. \nDo not disclose your mission to anyone but Enclave Personel with \nsecurity clearance 5 or higher. Reqisition supplies before departure. \n\n Signed, President John Henry Eden\n\n");
variables.userInput("[Enter to open shop]")
variables.userInput("[Enter to open shop]");
console.clear();
variables.prewarmoney = 500;