public static int GetCostForDrink(Bartending.Drink drink) { float num = 5f; //ActivateBusiness.debugger.Debug("OnDringOrder", "drink is " + drink.ToString()); if (drink.IsDataDrink) { //ActivateBusiness.debugger.Debug("OnDringOrder", "Drinks is datadrink"); Bartending.DrinkData drinkData = Bartending.GetDrinkData(drink.DataKey); if (drinkData != null) { //ActivateBusiness.debugger.Debug("OnDringOrder", "datafound"); num = (float)drinkData.Price; } } else { //ActivateBusiness.debugger.Debug("OnDringOrder", "Drinks is mooddrink"); Bartending.MoodData moodData = Bartending.GetMoodData(drink.Mood); if (moodData != null) { //ActivateBusiness.debugger.Debug("OnDringOrder", "datafound"); num = (float)moodData.Price; } } return((int)num); }
public Item(Bartending.DrinkData drink, string key, int count) : base(key, drink.GetLocalizedName(), count, drink.GetThumbnailKey()) { }