public void StorePrimarySpouse() { string s = PrimarySpouse; if (string.IsNullOrWhiteSpace(s)) { s = VanillaSpouse; } if (!string.IsNullOrWhiteSpace(s)) { //CheckPrimarySpouseProper(s); //make sure data is valid first PrimarySpouse = null; VanillaSpouse = null; Spouses.Add(s); CheckMarriedProper(s); //make sure everything looks right } }
public void Marry(string NPC, bool wedding = false) { SetDateable(NPC, true); if (Modworks.Player.GetFriendshipPoints(NPC) < 2500) { Modworks.Player.SetFriendshipPoints(NPC, 2500); } if (Game1.player.HouseUpgradeLevel < 1) { Game1.player.HouseUpgradeLevel = 1; //prevent crash } Modworks.Player.SetFriendshipStatus(NPC, FriendshipStatus.Married); Dates.Remove(NPC); Engagements.Remove(NPC); Divorces.Remove(NPC); Spouses.Add(NPC); if (string.IsNullOrWhiteSpace(PrimarySpouse)) { MakePrimarySpouse(NPC); } }
public bool ReconcileFams(Person indi) { Spouses.Add(indi); // Is the provided indi the husb or wife? return(MomId == indi.Id || DadId == indi.Id); }