More changes to menuing, added a basic inventory
system
This commit is contained in:
parent
f732586c24
commit
6ca88b7c6f
4 changed files with 90 additions and 12 deletions
|
|
@ -1,16 +1,31 @@
|
|||
const testingShite = require("./main.js");
|
||||
const variables = require("./variables.js");
|
||||
|
||||
module.exports = {
|
||||
encounterMenuMaker,
|
||||
beginTesting,
|
||||
initializeEncounter,
|
||||
}
|
||||
|
||||
function beginTesting(){
|
||||
console.log(encounterMenuMaker("abomination", 1));
|
||||
function initializeEncounter(reqFaction, diffWeighting, fight, flee){
|
||||
var encounter = encounterMenuMaker(reqFaction, diffWeighting);
|
||||
console.clear();
|
||||
console.log("You come across a " + encounter.name);
|
||||
var encounterHealth = variables.randomNumber(encounter.minHealth, encounter.maxHealth);
|
||||
console.log("Health: " + encounterHealth);
|
||||
console.log("What would you like to do?");
|
||||
console.log("--------------------------");
|
||||
var playerOptions = 1;
|
||||
if(fight == true){
|
||||
console.log(playerOptions + ") Fight");
|
||||
playerOptions++;
|
||||
}
|
||||
if(flee == true){
|
||||
console.log(playerOptions + ") Flee");
|
||||
playerOptions++;
|
||||
}
|
||||
console.log(playerOptions + ") Inventory");
|
||||
}
|
||||
|
||||
//Editor's note: abomination, raider, settler, BOS, NCR, Legion
|
||||
//Add any new encounter ideas to their required faction and difficulty
|
||||
var encounterDiffOne = [
|
||||
//NCR
|
||||
[],
|
||||
|
|
@ -31,6 +46,7 @@ var encounterDiffOne = [
|
|||
{name: "radroach", minHealth: 1, maxHealth: 10, lootTable: "food", numEnemies: 1},
|
||||
{name: "weak ghoul", minHealth: 10, maxHealth: 15, lootTable: "junk", numEnemies: 1},
|
||||
{name: "bloatfly swarm", minHealth: 1, maxHealth: 5, lootTable: "food", numEnemies: 5},
|
||||
{name: "wolf", minHealth: 5, maxHealth: 10, lootTable: "food", numEnemies: 1},
|
||||
]
|
||||
];
|
||||
var encounterDiffTwo = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue