This commit is contained in:
Caroline Foy 2025-04-29 14:01:20 -05:00
commit a540fb6518
6 changed files with 147 additions and 84 deletions

View file

@ -3,7 +3,12 @@
import { userInput } from "./functions.js";
import "./variables.js";
//Builds the main menu inventory
// inventoryMenuM()
// When the user asks to see thier inventory, this is called.
// Shows a list of options from which the player can choose
// If they choose to view, viewInventory() is called
// If they want to equip an armor or weapon, they are shown a list of all items with the specified type (weapon or armor)
// from there they can select the item and it replaces the item currently in the respective variable.
export function inventoryMenuM(){
console.clear();
console.log("INVENTORY");
@ -65,7 +70,8 @@ export function inventoryMenuM(){
}
}
//Builds the supply inventory
// viewInventory()
// Lists all items in the inventory array.
function viewInventory(){
console.clear();
console.log("Inventory");