big upgrades to upgrade system
This commit is contained in:
@@ -48,6 +48,10 @@ const tickdiffs_reset = {
|
||||
}
|
||||
var tickdiffs = {}
|
||||
|
||||
globalThis.isEmpty = str => !str.trim().length
|
||||
|
||||
import {cheat_resources} from "./seagull-cheats.mjs"
|
||||
|
||||
var bool_log_alt = false
|
||||
globalThis.record_log = function (text) {
|
||||
const div_logrow = document.createElement("div");
|
||||
@@ -300,7 +304,7 @@ async function game_tick() {
|
||||
ticks_since_last_save += 1;
|
||||
page_elements["lbl_tick"].innerHTML = gamestate["tick"];
|
||||
|
||||
if (gamestate["tick"] % 5 == 0) {
|
||||
if (gamestate["tick"] % 5 == 0 && gamestate["colony"] > 1) {
|
||||
var colony_tickdata = await fetch("/tick/colony", {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
|
Reference in New Issue
Block a user