From cc33072eced3d5460512c09c42ec4531c807d7af Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sat, 19 Sep 2026 01:55:34 -0400 Subject: fix: casino stake preservation, world state reconciliation, casino game registration --- internal/game/sys_triggers.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'internal/game/sys_triggers.go') diff --git a/internal/game/sys_triggers.go b/internal/game/sys_triggers.go index 61eb325..7a6466a 100644 --- a/internal/game/sys_triggers.go +++ b/internal/game/sys_triggers.go @@ -418,7 +418,11 @@ func (g *Game) TransientMobTick() { } } if inAllowed { - inst.DespawnCounter = inst.DespawnTickCount() + // The owner is back inside the allowed rooms: reset the grace + // period. (The old code assigned DespawnTickCount() back to the + // same field, a no-op that made the countdown cumulative across + // brief absences.) + inst.ResetDespawnCounter(engine.ToTicks(inst.DespawnTicks)) continue } inst.DecrementDespawnCounter() -- cgit v1.2.3