811 lines
No EOL
28 KiB
JavaScript
811 lines
No EOL
28 KiB
JavaScript
// Holds poi code, seperate from encounters.js
|
|
|
|
import { userInput, pauseScreen, enableRawMode, disableRawMode, sleep } from "./functions.js";
|
|
import './variables.js';
|
|
import { whitespringStore, trader, eurekaStore, newVegasStore, vaultZeroStore } from "./shops.js";
|
|
|
|
export function checkPOI() {
|
|
if (path == 0) {
|
|
if (location >= (pois[poiCounter].location)-3 && location <= pois[poiCounter].location && pois[poiCounter].visited == false) {
|
|
switch(pois[poiCounter].name) {
|
|
case "Whitespring Bunker":
|
|
whitespring();
|
|
break;
|
|
case "BOS Bunker Gamma":
|
|
bosGamma();
|
|
break;
|
|
case "BOS Bunker Delta":
|
|
bosDelta();
|
|
break;
|
|
case "BOS Bunker Epsilon":
|
|
bosEpsilon();
|
|
break;
|
|
case "Vault 0":
|
|
vault0();
|
|
break;
|
|
case "Tibbets Prison":
|
|
tibbets();
|
|
break;
|
|
case "Flagstaff":
|
|
flagstaff();
|
|
break;
|
|
case "New Vegas":
|
|
newVegas();
|
|
}
|
|
}
|
|
}
|
|
if (path == 1) {
|
|
if (locationA >= (pois[poiCounter].location)-3 && locationA <= pois[poiCounter].location && pois[poiCounter].visited == false) {
|
|
switch(pois[poiCounter].name) {
|
|
case "Mojave Outpost":
|
|
mojaveOutpost();
|
|
break;
|
|
case "Necropolis":
|
|
necropolis();
|
|
break;
|
|
case "The Hub":
|
|
hub();
|
|
break;
|
|
case "Lost Hills":
|
|
lostHills();
|
|
break;
|
|
case "Mariposa MB":
|
|
mariposa();
|
|
break;
|
|
case "San Francisco":
|
|
sanFrancisco();
|
|
break;
|
|
case "Camp Navarro":
|
|
navarro();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
if (path == 2) {
|
|
if (locationB >= (pois[poiCounter].location)-3 && locationB <= pois[poiCounter].location && pois[poiCounter].visited == false) {
|
|
switch(pois[poiCounter].name) {
|
|
case "Canyon Wreckage":
|
|
canyonWreck();
|
|
break;
|
|
case "Hopeville & Ashton":
|
|
hopeville();
|
|
break;
|
|
case "The Sierra Madre":
|
|
sierraMadre();
|
|
break;
|
|
case "Shady Sands":
|
|
shadySands();
|
|
break;
|
|
case "New Reno":
|
|
newReno();
|
|
break;
|
|
case "Redding":
|
|
redding();
|
|
break;
|
|
case "Eureka":
|
|
eureka();
|
|
break;
|
|
case "Camp Navarro":
|
|
navarro();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
global.poiCounter = 0;
|
|
global.pois = [
|
|
{name: "Whitespring Bunker", location: 25, path: 0, visited: false},
|
|
{name: "BOS Bunker Gamma", location: 100, path: 0, visited: false},
|
|
{name: "BOS Bunker Delta", location: 125, path: 0, visited: false},
|
|
{name: "BOS Bunker Epsilon", location: 175, path: 0, visited: false},
|
|
{name: "Vault 0", location: 200, path: 0, visited: false},
|
|
{name: "Tibbets Prison", location: 250, path: 0, visited: false},
|
|
{name: "Flagstaff", location: 275, path: 0, visited: false},
|
|
{name: "New Vegas", location: 300, path: 0, visited: false},
|
|
{name: "Mojave Outpost", location: 5, path: 1, visited: false},
|
|
{name: "Necropolis", location: 10, path: 1, visited: false},
|
|
{name: "The Hub", location: 15, path: 1, visited: false},
|
|
{name: "Lost Hills", location: 20, path: 1, visited: false},
|
|
{name: "Mariposa MB", location: 30, path: 1, visited: false},
|
|
{name: "San Franciso", location: 35, path: 1, visited: false},
|
|
{name: "Camp Navarro", location: 45, path: 1, visited: false},
|
|
{name: "Canyon Wreckage", location: 5, path: 2, visited: false},
|
|
{name: "Hopeville & Ashton", location: 15, path: 2, visited: false},
|
|
{name: "The Sierra Madre", location: 25, path: 2, visited: false},
|
|
{name: "Shady Sands", location: 35, path: 2, visited: false},
|
|
{name: "New Reno", location: 55, path: 2, visited: false},
|
|
{name: "Redding", location: 75, path: 2, visited: false},
|
|
{name: "Eureka", location: 85, path: 2, visited: false},
|
|
{name: "Camp Navarro", location: 100, path: 2, visited: false},
|
|
]
|
|
|
|
function whitespring() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at the Whitespring Bunker.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade (Whitespring Mall)");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let whitespringInput = userInput("Enter: ");
|
|
switch(whitespringInput) {
|
|
case "1":
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You enter the bunker. A robotic voice greets you...\n\n");
|
|
sleep(3);
|
|
console.log("MODUS: Welcome, soldier. Might I ask what brings you here, or... who?");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": I am "+name+". I was ordered here by President Eden. I'm passing though on my way to...\n*You stop yourself before continuing*\nWait, who are you anyway?");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: I am MODUS, the... acting head of this bunker.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": So I assume you're of top level clearance?");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: Yes, and no need to tell me where you're going. By my limited knowledge I'd assume they tasked you with a retrieval from Navarro, of what, however, I'm not sure.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": Me either, I'll get the info when I'm there.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: Not unusual for the Enclave, nor Eden from what I hear.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": They told me this place would be empty, but it's not.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: The original inhabitants are long gone, and they never bothered to check when passing though. They know nothing of my existance. As for the people topside... they are gone too.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": What happened? It's a hellscape apart from the Whitespring.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: The scorched plague ravaged the wastes, but was stopped by dwellers from Vault 76. The area was reinhabited, but bigger threats drove the people out again. When the Responders fell for the second time, everyone left.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": Well then, is there anything for me here before I leave?");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log("MODUS: The Resort is taken care of by robots, the vendortrons may still be active. As for here... the dwellers turned generals ran me out.");
|
|
userInput(" \n[Enter to continue]\n")
|
|
console.log(name+": I guess I'll be on my way then. Goodbye.")
|
|
userInput("[Enter to exit conversation]")
|
|
break;
|
|
case "2":
|
|
whitespringStore();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function bosGamma() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at the BOS Bunker Gamma.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You enter the bunker, and are greeted by a stern-looking scribe...\n\n");
|
|
sleep(3);
|
|
console.log("Scribe: Civilian! State your purpose for entering this bunker!");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Just looking around. Might do some bartering, if you're open to it.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Scribe: Very well, so long as you don't interfere with brotherhood operations...");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Oh my god, is that a deathclaw!? Everyone, look out!\n*You ready yourself for an epic battle*");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Scribe: HOLD YOUR FIRE! She's one of us!");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": One of us? Like... you tamed a deathclaw?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Scribe: Tamed? No, they chose to join us. They're not like the usual deathclaws, these ones can talk.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Talking deathclaws? Astounding...\n*You mutter under your breath*\nThe Enclave needs to know about this...");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Scribe: What was that, civilian?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Oh, nothing.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Scribe: Alright then... Now, put that weapon away and go bother somebody else.");
|
|
userInput("[Enter to exit conversation]");
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function bosDelta() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at the BOS Bunker Delta.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You approach a quiet looking man...");
|
|
sleep(3);
|
|
console.log(name + ": Who are you?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Hassan: I'm the quartermaster of this here bunker. You need supplies, you come to me.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Is there anything to do around here?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Hassan: Absolutely! This fantastic bunker could always use some extra help! You could help me polish this armor, to start.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Err, I'll pass, thank you. I was hoping for something a little less... boring...");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Hassan: Are you kidding? In this bunker, we have a motto: Inventory is not boring. Inventory is LIFE!");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Ooooookay then... If inventory is so fun, why don't you do it instead of me?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Hassan: You know what, you have a point... Scram, so I can get back to counting ammunition.");
|
|
userInput("[Enter to exit the conversation]");
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function bosEpsilon() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at the BOS Bunker Epsilon.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You approach a lone man in tribal attire. He appears to be mourning...");
|
|
sleep(3);
|
|
console.log("Tiduk: I shall never forget you, dear sister, and I shall visit your grave until the great Brahmin God of Battle sends me to join you.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Brahmin god? You're not from around here, are you?");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Tiduk: I have not seen you in the bunker. It would appear that it is you who are foregn to these lands.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": That's an interesting choice of attire for a brotherhood soldier, I mean.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Tiduk: I am Tiduk. I come from the tribe of Brahmin Woods.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": And you're mourning your sister? What happened to her, if you don't mind me asking...");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Tiduk: She was a great warrior, though I did not recognize this until it was too late. We had fought a successful battle, and were returning to base camp when we were ambushed by robots. Some of us escaped, but my sister was not so lucky.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Oh, I'm sorry for your loss.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Tiduk: I just wish it wasn't I who must break the news to mother...");
|
|
userInput("[Enter to exit the conversation]");
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function vault0() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at Vault 0.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("VT0 Dialogue here...")
|
|
break;
|
|
case "2":
|
|
vaultZeroStore();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function tibbets() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at Tibbets Prison.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Tibbets Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function flagstaff() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at Flagstaff.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Attempt to trade");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You walk up to one of two men guarding a gate, he glares at you through his sunglasses...");
|
|
sleep(3);
|
|
console.log("Legionarre: Halt! Keep out of Legion territory or else I'll take you as a new slave.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Woah now, I'm not looking for trouble. Just want to trade and be on my way...");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("Legionarre: Hmph, fat chance. Don't try anything, outsider, or you'll see first-hand the wrath of Caesar.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log(name + ": Put down your shotgun-gloves. Like I said, I'm not here to fight.");
|
|
userInput(" \n[Enter to continue]\n");
|
|
console.log("*The legionarre scowls at you while you walk away*");
|
|
userInput("[Enter to exit conversation]");
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
case "3":
|
|
flagstaffStore();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function newVegas() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at New Vegas.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Continue your journey");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
newVegasStore();
|
|
break;
|
|
case "4":
|
|
console.clear();
|
|
console.log("Ahead lies 2 routes to Navarro.");
|
|
sleep(1);
|
|
console.log("The northern route passes through the Divide before going north through the mountains. It offers a longer path with fewer possible enimies, but those you face will not back down.")
|
|
console.log("The southern route goes through the heart of the NCR along I-15. It is shorter and more pleasant, however without proper reputation your many stops may become worrisome.")
|
|
var pathChoice = userInput("Which path would you like to follow, Northern or Southern? ");
|
|
if (pathChoice.toLowerCase == "northern") {
|
|
path = 2;
|
|
break;
|
|
}
|
|
if (pathChoice.toLowerCase == "southern") {
|
|
path = 1;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
|
|
function mojaveOutpost() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at the Mojave Outpost.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Outpost Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function necropolis() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at Necropolis.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Necropolis Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function hub() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at The Hub.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Hub Dialogue here... (make it possible to find hubbologists")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
case "3":
|
|
trader();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function lostHills() {
|
|
disableRawMode();
|
|
console.clear();
|
|
sleep(1);
|
|
console.log("You have arrived at Lost Hills.");
|
|
sleep(1);
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Attempt to trade");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("LH Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
case "3":
|
|
lostHillsStore();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function mariposa() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Mariposa Military Base.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Mariposa Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function sanFrancisco() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at San Francisco.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Redding Dialogue here...")
|
|
break;
|
|
case "2":
|
|
trader();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function canyonWreck() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Redding.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Open your PIP-Boy");
|
|
console.log("3) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Redding Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function hopeville() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Hopeville.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Hopeville Dialogue here...")
|
|
break;
|
|
case "2":
|
|
trader();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function sierraMadre() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at The Sierra Madre.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Madre Dialogue here...")
|
|
break;
|
|
case "2":
|
|
pauseScreen();
|
|
break;
|
|
case "3":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function shadySands() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Shady Sands.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Shady Sands Dialogue here...")
|
|
break;
|
|
case "2":
|
|
trader();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function newReno() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at New Reno.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Reno Dialogue here...")
|
|
break;
|
|
case "2":
|
|
trader();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function redding() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Redding.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Redding Dialogue here...")
|
|
break;
|
|
case "2":
|
|
trader();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function eureka() {
|
|
disableRawMode();
|
|
console.clear();
|
|
console.log("You have arrived at Eureka.");
|
|
console.log("What would you like to do?");
|
|
console.log("1) Explore");
|
|
console.log("2) Attempt to trade");
|
|
console.log("3) Open your PIP-Boy");
|
|
console.log("4) Leave");
|
|
let poiInput = userInput("Enter: ");
|
|
switch(poiInput) {
|
|
case "1":
|
|
console.clear();
|
|
console.log("Eureka Dialogue here...")
|
|
break;
|
|
case "2":
|
|
eurekaStore();
|
|
break;
|
|
case "3":
|
|
pauseScreen();
|
|
break;
|
|
case "4":
|
|
enableRawMode();
|
|
console.clear();
|
|
break;
|
|
}
|
|
}
|
|
|
|
function navarro() {
|
|
disableRawMode();
|
|
console.clear();
|
|
enableRawMode();
|
|
} |