package game import ( "thehouseoficarus/internal/combat" "thehouseoficarus/internal/net" ) func (g *Game) executeStop(sess *net.Session, args []string, rawInput string) { p := sess.Player ss, _ := g.safespot.Get(p.Name) if p.Action == nil && p.BackgroundAction == nil && combat.GetCombat(p.Name) == nil && p.MoveTicks == 0 && len(p.WalkSequence) == 0 && !ss.Active { sess.WriteLine("You're not doing anything.") return } g.cancelAction(p) g.cancelBgAction(p) g.queue.DeleteActive(p.Name) sess.WriteLine("You stop what you were doing.") }