My comments.
This commit is contained in:
parent
77cb3f4613
commit
a8c9d868be
6 changed files with 147 additions and 84 deletions
|
|
@ -1,7 +1,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");
|
||||
|
|
@ -63,7 +68,8 @@ export function inventoryMenuM(){
|
|||
}
|
||||
}
|
||||
|
||||
//Builds the supply inventory
|
||||
// viewInventory()
|
||||
// Lists all items in the inventory array.
|
||||
function viewInventory(){
|
||||
console.clear();
|
||||
console.log("Inventory");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue