public Proposal GetOutgoingProposal() { if (proposals.TryGetValue(Game1.player.UniqueMultiplayerID, out Proposal proposal)) { return(proposal); } return(null); }
private bool WasPetToday(Pet pet) { NetLongDictionary <int, NetInt> lastPettedDays = _helper.Reflection.GetField <NetLongDictionary <int, NetInt> >(pet, "lastPetDay").GetValue(); return(lastPettedDays.TryGetValue(Game1.player.UniqueMultiplayerID, out int lastDay) && lastDay == Game1.Date.TotalDays); }