public bool UsePotion(PotionType type) { bool flag = Engine.UsePotion(type); if (!flag) { Engine.AddTextMessage(string.Format("You do not have any {0} potions!", type.ToString().ToLower()), Engine.DefaultFont, Hues.Load(0x22)); } return(flag); }