blob: 0db0ac2cded92e2fab9194542cb6fb9aa55d0d5a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package game
import (
"thehouseoficarus/internal/net"
)
func (g *Game) executeStop(sess *net.Session, args []string, rawInput string) {
p := sess.Player
as, ok := p.ActionState.(*ActionState)
if !ok || as == nil || as.Type == "" {
sess.WriteLine("You're not doing anything.")
return
}
g.cancelAction(p)
g.cancelBgAction(p)
delete(g.activeQueue, p.Name)
sess.WriteLine("You stop what you were doing.")
}
|