Skip to content

Commit

Permalink
- Removed the "you learned X recipe" dialogue from the queen of sauce…
Browse files Browse the repository at this point in the history
… when it's chefsanity and you don't actually learn it
  • Loading branch information
agilbert1412 committed Apr 28, 2024
1 parent 1580dce commit 9e0bafa
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,19 @@ public static void GetCurrentDateComponents(int daysPlayed, out int year, out in

private static string[] GetQueenOfSauceTvText(string recipeName, string recipeDetails, string[] recipeInfo)
{
var weeklyRecipe = new string[2];
weeklyRecipe[0] = recipeDetails;
var weeklyRecipe = new List<string>();
weeklyRecipe.Add(recipeDetails);

var isEnglish = LocalizedContentManager.CurrentLanguageCode == LocalizedContentManager.LanguageCode.en;
var alreadyKnowsRecipe = Game1.player.cookingRecipes.ContainsKey(recipeName);
var alreadyKnownText = Game1.content.LoadString(ALREADY_KNOWN_KEY, recipeName);
var newRecipeText = Game1.content.LoadString(NEW_RECIPE_LEARNED_KEY, recipeName);

if (_archipelago.SlotData.Chefsanity.HasFlag(Chefsanity.QueenOfSauce))
{
return weeklyRecipe.ToArray();
}

var recipeLearnedInfoText = alreadyKnowsRecipe ? alreadyKnownText : newRecipeText;

if (!isEnglish)
Expand All @@ -162,8 +168,8 @@ private static string[] GetQueenOfSauceTvText(string recipeName, string recipeDe
recipeLearnedInfoText = alreadyKnowsRecipe ? alreadyKnownText : newRecipeText;
}

weeklyRecipe[1] = recipeLearnedInfoText;
return weeklyRecipe;
weeklyRecipe.Add(recipeLearnedInfoText);
return weeklyRecipe.ToArray();
}

private static int PickRerunRecipe(Dictionary<string, string> cookingRecipes, int currentWeek)
Expand Down

0 comments on commit 9e0bafa

Please sign in to comment.