public static bool IsUnDonatedFish(string s) { if (InternalNameToDonationName.ContainsValue(s)) { return(!MasterPlayerMail.Contains($"AquariumDonated:{s}")); } return(false); }
private static void GameLoop_SaveLoaded(object sender, SaveLoadedEventArgs e) { //clear these dictionaries InternalNameToDonationName.Clear(); FishDisplayNames.Clear(); foreach (var kvp in Game1.objectInformation) { var info = kvp.Value.Split('/'); var fishName = info[0]; if (info[3].Contains("-4")) { FishIDs.Add(kvp.Key); InternalNameToDonationName.Add(fishName, fishName.Replace(" ", string.Empty)); FishDisplayNames.Add(fishName.Replace(" ", string.Empty), info[4]); } } }