Fixed sleep function issue and writing to global variables.

This commit is contained in:
Raktbastr 2025-04-06 09:28:09 -05:00
parent dbd27cfa7d
commit fdd58af63e
4 changed files with 37 additions and 31 deletions

View file

@ -1,7 +1,7 @@
// Holds poi code, seperate from encounters.js
import { userInput } from "./functions.js";
import { location, locationA, locationB, path } from "./variables.js";
import './variables.js';
export function checkPOI() {
if (path == 0) {
@ -91,8 +91,8 @@ export function checkPOI() {
}
}
export var poiCounter = 0;
export var pois = [
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},