From a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 14 Jun 2026 22:38:23 -0400 Subject: feat: fractional ticks and server game_speed implemented. potentially insanely janky. --- internal/game/cmd_drop.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'internal/game/cmd_drop.go') diff --git a/internal/game/cmd_drop.go b/internal/game/cmd_drop.go index 149b86b..dc506f0 100644 --- a/internal/game/cmd_drop.go +++ b/internal/game/cmd_drop.go @@ -11,6 +11,7 @@ import ( func (g *Game) doDropAll(sess *net.Session) { p := sess.Player.(*player.Player) g.CancelAction(p) + p.ActionState = &ActionState{Type: ActionDropping, TargetName: "inventory"} count := 0 for _, slot := range p.Inventory { @@ -52,6 +53,7 @@ func (g *Game) doDropAllNamed(sess *net.Session, input string) { if def != nil { name = def.Name } + p.ActionState = &ActionState{Type: ActionDropping, TargetName: name} if def != nil && def.Stackable { slot := p.InvSlot(matches[0].Slot) @@ -113,6 +115,7 @@ 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