Initialize spirit timer variable

This commit is contained in:
2025-05-28 06:27:06 +02:00
parent 4080e1ff5d
commit b0fdb99ad9

View File

@@ -12,6 +12,7 @@ const wss = new ws.Server({ server });
let spiritPos = 0; let spiritPos = 0;
const SPIRIT_INTERVAL_MS = 20000; // 20 Sekunden const SPIRIT_INTERVAL_MS = 20000; // 20 Sekunden
let lastSpiritSpawn = Date.now(); let lastSpiritSpawn = Date.now();
let spiritTimer = null;
app.use(express.static(path.join(__dirname, 'public'))); app.use(express.static(path.join(__dirname, 'public')));