Added page with examples.

This commit is contained in:
Raktbastr 2025-02-21 16:18:41 -06:00
parent cc6aaedc32
commit ef3035f944
4 changed files with 39 additions and 3 deletions

View file

@ -1,5 +1,9 @@
// Holds the global variables, functions, and math operations such as the day counter and food eaten..
module.exports = {
sleep
};
var day = 0; // Should we add a definite end? 365 Days?
var ammo = 0; // No cap :)
@ -57,4 +61,9 @@ function scavenge() {
let random = Math.random(lootTables[group][0], lootTables[group][3]);
inventory.push(random);
}
}
}
function sleep(time) {
setTimeout(() => {}, time);
}