diff options
Diffstat (limited to 'internal/game/cmd_get.go')
| -rw-r--r-- | internal/game/cmd_get.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/cmd_get.go b/internal/game/cmd_get.go index 6f08892..bae721b 100644 --- a/internal/game/cmd_get.go +++ b/internal/game/cmd_get.go @@ -8,8 +8,8 @@ import ( ) func (g *Game) doGet(sess *net.Session, input string) { - p := sess.Player.(*player.Player) - g.CancelAction(p) + p := sess.Player + g.cancelAction(p) ground := g.World.GroundItems(p.RoomID) if len(ground) == 0 { sess.WriteLine("There's nothing on the ground to pick up.") @@ -129,8 +129,8 @@ func (g *Game) doGet(sess *net.Session, input string) { } func (g *Game) doGetAllNamed(sess *net.Session, input string) { - p := sess.Player.(*player.Player) - g.CancelAction(p) + p := sess.Player + g.cancelAction(p) ground := g.World.GroundItems(p.RoomID) if len(ground) == 0 { sess.WriteLine("There's nothing on the ground to pick up.") @@ -251,8 +251,8 @@ func (g *Game) doGetAllNamed(sess *net.Session, input string) { } func (g *Game) doGetAll(sess *net.Session) { - p := sess.Player.(*player.Player) - g.CancelAction(p) + p := sess.Player + g.cancelAction(p) ground := g.World.GroundItems(p.RoomID) if len(ground) == 0 { sess.WriteLine("There's nothing on the ground to pick up.") |
