big upgrades to upgrade system

This commit is contained in:
2025-10-05 11:11:54 -07:00
parent 0edb4b50d2
commit 537bdf1ad7
20 changed files with 3310 additions and 97 deletions

View File

@@ -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({