Add game,js and modify calcLocation. Added variable exports to every file.

This commit is contained in:
Raktbastr 2025-02-26 09:51:09 -06:00
parent 25efc4f9f9
commit 3178ef479b
10 changed files with 109 additions and 85 deletions

View file

@ -1,4 +1,5 @@
// Deathscreens, they should be the fallout 1 screens
const variables = require("./variables.js");
module.exports = {
deathScreen,
@ -6,7 +7,7 @@ module.exports = {
};
function deathScreen() {
let random = Math.random(1,3);
let random = variables.randomNumber(1,3);
if (random = 1) { death1(); }
if (random = 2) { death2(); }
if (random = 3) { death3(); }