aboutsummaryrefslogtreecommitdiff
path: root/internal/game/tick.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-19 03:52:04 -0400
committerhistoria <[not public]>2026-09-19 03:52:04 -0400
commitbab5dd653039d026eb3d4e46da7aafef7137fe7c (patch)
tree9a1d8686dbcef8c145e3593511153768ae08962c /internal/game/tick.go
parent0e60567a7a0addb9421769ee7be7853bfa8788cb (diff)
downloadthehouseoficarus-bab5dd653039d026eb3d4e46da7aafef7137fe7c.tar.gz
fix: journal in-game room insert/remove, rewrite non-room room refs on rename/swap, seed admin grid from edited room, type action switches
Diffstat (limited to 'internal/game/tick.go')
-rw-r--r--internal/game/tick.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/tick.go b/internal/game/tick.go
index a57ea26..6c3eb7d 100644
--- a/internal/game/tick.go
+++ b/internal/game/tick.go
@@ -208,7 +208,7 @@ func (g *Game) SharedDepletionTick() {
activeKeys := make(map[string]bool)
for _, sess := range g.Hub.AllSessions() {
p := sess.Player
- if p == nil || p.Action == nil || p.Action.Type != "gather" {
+ if p == nil || p.Action == nil || p.Action.Type != behavior.TypeGather {
continue
}
if gd, ok := p.Action.Data.(*behavior.GatherData); ok {