func (c *Creature) Use(i item.Itemer) { if !item.IsUsable(i) { status.Println("You can't use that item!", termbox.ColorRed+termbox.AttrBold) return } if !item.IsPermanent(i) { if i.Count() > 1 { i.SetCount(i.Count() - 1) } else { delete(c.Inventory, i.Hotkey()) } } c.use(i) }