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_consume.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/game/cmd_consume.go') diff --git a/internal/game/cmd_consume.go b/internal/game/cmd_consume.go index f45b912..249bc9a 100644 --- a/internal/game/cmd_consume.go +++ b/internal/game/cmd_consume.go @@ -103,8 +103,6 @@ func (g *Game) doEatNow(sess *net.Session, p *player.Player, itemID string, def p.ConsumeCooldown = 3 g.AccountStore.SaveCharacter(p) - p.ActionState = &ActionState{Type: ActionEating, TargetName: def.Name} - sess.WriteLine(g.colorize(sess, "eat_food", def.EatMessage)) if p.HP <= 0 { @@ -280,7 +278,6 @@ func (g *Game) applyPotion(sess *net.Session, p *player.Player, itemID string, d } p.ConsumeCooldown = 3 - p.ActionState = &ActionState{Type: ActionEating} g.broadcastAction(sess, "\n%s drinks a %s.", p.Name, def.Name) } -- cgit v1.2.3