diff options
| author | historia <[not public]> | 2026-09-19 01:55:34 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-19 01:55:34 -0400 |
| commit | cc33072eced3d5460512c09c42ec4531c807d7af (patch) | |
| tree | b1b451fa87fa389cb8343a3645372f3b43f5523e /internal/game/sys_triggers.go | |
| parent | 2c38386484cdb507c4687caceb37e0b963e33594 (diff) | |
| download | thehouseoficarus-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.go | 6 |
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() |
