aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_triggers.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-19 01:55:34 -0400
committerhistoria <[not public]>2026-09-19 01:55:34 -0400
commitcc33072eced3d5460512c09c42ec4531c807d7af (patch)
treeb1b451fa87fa389cb8343a3645372f3b43f5523e /internal/game/sys_triggers.go
parent2c38386484cdb507c4687caceb37e0b963e33594 (diff)
downloadthehouseoficarus-cc33072eced3d5460512c09c42ec4531c807d7af.tar.gz
fix: casino stake preservation, world state reconciliation, casino game registration
Diffstat (limited to 'internal/game/sys_triggers.go')
-rw-r--r--internal/game/sys_triggers.go6
1 files changed, 5 insertions, 1 deletions
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()