// dropInventory drops everything the player is carrying. func (p *Player) dropInventory(cmd *command.Command) { for _, o := range p.Inventory.List() { if c, ok := o.(command.Interface); ok { if aliases := o.Aliases(); len(aliases) > 0 { cmd.New("DROP " + o.Aliases()[0]) c.Process(cmd) } } } }