private static void LoadQuestText(Quest quest) { BaitTackle baitTackle = (BaitTackle)quest.id.Value; string baitTackleName = I18N.Get($"{baitTackle.ToString()}.Name"); quest.questTitle = baitTackleName; quest.questDescription = I18N.Get("Quest.Description", new { Item = baitTackleName }); string questObjective; if (Game1.player.craftingRecipes.ContainsKey(baitTackle.GetDescription()) && Game1.player.craftingRecipes[baitTackle.GetDescription()] > 0) { questObjective = "Quest.LastObjective"; } else { questObjective = "Quest.FirstObjective"; } quest.currentObjective = I18N.Get(questObjective, new { Item = baitTackleName }); }
private string AddRecipeData(IDictionary <string, string> data, BaitTackle baitTackle, string recipe) { return(data[baitTackle.GetDescription()] = GetRecipeString(recipe, baitTackle)); }
private void AddLetter(BaitTackle baitTackle, Func <Letter, bool> condition, Action <Letter> callback = null, int whichBG = 0) { MailDao.SaveLetter(new Letter(baitTackle.ToString() + "Recipe", I18N.Get(baitTackle.ToString() + ".Letter"), baitTackle.GetDescription(), condition, callback, whichBG)); }