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_drop.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'internal/game/cmd_drop.go') diff --git a/internal/game/cmd_drop.go b/internal/game/cmd_drop.go index ffed913..d77eb53 100644 --- a/internal/game/cmd_drop.go +++ b/internal/game/cmd_drop.go @@ -10,7 +10,6 @@ import ( func (g *Game) doDropAll(sess *net.Session) { p := sess.Player g.cancelAction(p) - p.ActionState = &ActionState{Type: ActionDropping, TargetName: "inventory"} count := 0 for _, slot := range p.Inventory { @@ -50,7 +49,6 @@ func (g *Game) doDropAllNamed(sess *net.Session, input string) { name = def.Name } coloredName := g.itemColorize(sess, def, name) - p.ActionState = &ActionState{Type: ActionDropping, TargetName: name} if def != nil && def.Stackable { slot := p.InvSlot(matches[0].Slot) @@ -109,7 +107,6 @@ func (g *Game) doDrop(sess *net.Session, input string) { if def != nil { name = def.Name } - p.ActionState = &ActionState{Type: ActionDropping, TargetName: name} if qty == 0 { if def != nil && def.Stackable { -- cgit v1.2.3