From 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 25 Jun 2026 00:44:47 -0400 Subject: refactor: replaced map[string]any with typed structs for Data --- internal/game/tick.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/game/tick.go') diff --git a/internal/game/tick.go b/internal/game/tick.go index 1402b06..6d79964 100644 --- a/internal/game/tick.go +++ b/internal/game/tick.go @@ -4,6 +4,7 @@ import ( "fmt" "math/rand" + "thehouseoficarus/internal/action" "thehouseoficarus/internal/combat" "thehouseoficarus/internal/player" "thehouseoficarus/internal/world" @@ -166,8 +167,8 @@ func (g *Game) SharedDepletionTick() { if p == nil || p.Action == nil || p.Action.Type != "gather" { continue } - if key, ok := p.Action.Data["instance_key"].(string); ok { - activeKeys[key] = true + if gd, ok := p.Action.Data.(*action.GatherData); ok { + activeKeys[gd.InstanceKey] = true } } -- cgit v1.2.3