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/cmd_id.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'internal/game/cmd_id.go') diff --git a/internal/game/cmd_id.go b/internal/game/cmd_id.go index 6514463..3ddfe33 100644 --- a/internal/game/cmd_id.go +++ b/internal/game/cmd_id.go @@ -139,11 +139,9 @@ func (g *Game) doIdentify(sess *net.Session, input string) { TargetID: found.AltarID, TargetName: altarName, WaitLeft: 1, - Data: map[string]any{ - "junk_id": found.JunkID, - "xp_per": found.XPPer, - "level_req": found.LevelReq, + Data: &action.IdentifyData{ + JunkID: found.JunkID, + XPPer: found.XPPer, }, } - p.ActionState = &ActionState{Type: ActionIdentifying, TargetName: altarName} } -- cgit v1.2.3