Stashing changes for later

This commit is contained in:
Raktbastr 2025-03-30 18:52:44 -05:00
parent 49f93574af
commit 8871c644fb
5 changed files with 116 additions and 21 deletions

View file

@ -1,9 +1,11 @@
const variables = require("./variables.js");
const combat = requre("./combat.js");
const combat = require("./combat.js");
module.exports = {
encounterMenuMaker,
initializeEncounter,
poiCounter,
pois,
}
function initializeEncounter(reqFaction, diffWeighting, fight, flee, forceFaction){
@ -34,7 +36,7 @@ function initializeEncounter(reqFaction, diffWeighting, fight, flee, forceFactio
combat.initCombat(encounter);
break;
case "3":
if (variables.reputation{reqFaction} < 4) {
if (variables.reputation.reqFaction < 4) {
if (variables.randomNumber(1,100) < 40){
console.log("You tried to flee... but they noticed you.");
combat.initCombat(encounter);
@ -217,4 +219,31 @@ function encounterMenuMaker(reqFactionEMM, diffWeightingEMM, forceOptEMM){
encountered.push(encounterDiffOne[faction][variables.randomNumber(0, encounterDiffOne[faction].length - 1)])
}
}
}
}
var poiCounter = 0;
var pois = [
{name: "Whitespring Bunker", location: 25, path: 0},
{name: "BOS Bunker Gamma", location: 100, path: 0},
{name: "BOS Bunker Delta", location: 125, path: 0},
{name: "BOS Bunker Epsilon", location: 175, path: 0},
{name: "Vault 0", location: 200, path: 0},
{name: "Tibbets Prison", location: 250, path: 0},
{name: "Flagstaff", location: 275, path: 0},
{name: "New Vegas", location: 300, path: 0},
{name: "Mojave Outpost", location: 5, path: 1},
{name: "Necropolis", location: 10, path: 1},
{name: "The Hub", location: 15, path: 1},
{name: "Lost Hills", location: 20, path: 1},
{name: "Mariposa MB", location: 30, path: 1},
{name: "San Franciso", location: 35, path: 1},
{name: "Camp Navarro", location: 45, path: 1},
{name: "Canyon Wreckage", location: 5, path: 2},
{name: "Hopeville & Ashton", location: 15, path: 2},
{name: "The Sierra Madre", location: 25, path: 2},
{name: "Shady Sands", location: 35, path: 2},
{name: "New Reno", location: 55, path: 2},
{name: "Redding", location: 75, path: 2},
{name: "Eureka", location: 85, path: 2},
{name: "Camp Navarro", location: 100, path: 2},
]