diff options
| author | historia <[not public]> | 2026-06-25 00:44:47 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-25 00:44:47 -0400 |
| commit | 94a06fbbe682701ca4d4bd2a70cd74d8df29c932 (patch) | |
| tree | eb49fb1893e61092138164d419e863ee3fe0d1e2 /internal/game/cmd_drop.go | |
| parent | 15b7e221b799ef107dec44ecdb294026dfd3d059 (diff) | |
| download | thehouseoficarus-94a06fbbe682701ca4d4bd2a70cd74d8df29c932.tar.gz | |
refactor: replaced map[string]any with typed structs for Data
Diffstat (limited to 'internal/game/cmd_drop.go')
| -rw-r--r-- | internal/game/cmd_drop.go | 3 |
1 files changed, 0 insertions, 3 deletions
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 { |
