Begin work on rep system. Finished encounter generation for the most part. Needs testing.
This commit is contained in:
parent
42bf2a484a
commit
49f93574af
5 changed files with 185 additions and 37 deletions
|
|
@ -23,25 +23,28 @@ console.log("2) Learn How to play");
|
|||
console.log("3) Quit Game");
|
||||
console.log("4) Dev stuff for testing");
|
||||
|
||||
var mainMenuInput = variables.userInput("Enter: ")
|
||||
|
||||
switch(mainMenuInput) {
|
||||
case "1":
|
||||
startGame();
|
||||
break;
|
||||
case "2":
|
||||
console.log("Follow the link below for a game manual.")
|
||||
console.log("[ENTER LINK HERE]")
|
||||
break;
|
||||
case "3":
|
||||
console.log("Quitting Game...");
|
||||
variables.sleep(1000);
|
||||
break;
|
||||
case "4":
|
||||
inventoryStuff.inventoryMenuM();
|
||||
break;
|
||||
|
||||
while(true) {
|
||||
let mainMenuInput = variables.userInput("Enter: ")
|
||||
switch(mainMenuInput) {
|
||||
case "1":
|
||||
startGame();
|
||||
break;
|
||||
case "2":
|
||||
console.log("Follow the link below for a game manual.")
|
||||
console.log("[ENTER LINK HERE]")
|
||||
break;
|
||||
case "3":
|
||||
console.log("Quitting Game...");
|
||||
variables.sleep(1000);
|
||||
break;
|
||||
case "4":
|
||||
let testarr = [1,2,3,4]
|
||||
console.log(testarr[testarr.length - 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
function startGame() { // So far what I have is filler and testing, feel free to change.
|
||||
console.clear();
|
||||
variables.sleep(1000);
|
||||
|
|
@ -57,4 +60,12 @@ function startGame() { // So far what I have is filler and testing, feel free to
|
|||
|
||||
variables.prewarmoney = 500;
|
||||
shops.ravenRock();
|
||||
|
||||
for (variables.location = 0; variables.location <= 255; variables.location++) {
|
||||
game.calcLocation();
|
||||
game.calcEncounter();
|
||||
game.calcSickPoints();
|
||||
game.eatFood();
|
||||
game.checkLose();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue