private void UseItem(Consumable i) { playerAction = PlayerState.UsingItem; i.Effect(); if (i.Uses == 0) { i.Owner.Inventory.Remove(i); } playerAction = PlayerState.Done; }