public override void Init(HousePartySituation parent) { CommodityKind commodity = parent.HostMotive(); parent.OnHappening(); parent.Host.Motives.CreateMotive(commodity); AddBeAtPartyMotive(parent.Host); Situation.CancelAutonomousInteractions(parent.Host); Lot lot = parent.Lot; Lot lotHome = parent.Host.LotHome; foreach (Sim sim in parent.OtherHosts) { Situation.CancelAutonomousInteractions(sim); sim.Motives.CreateMotive(commodity); AddBeAtPartyMotive(sim); } foreach (Sim sim2 in parent.Guests) { AddBeAtPartyMotive(sim2); } if (StoryProgression.Main.Situations.MatchesAlertLevel(parent.Host)) { string titleText = Common.LocalizeEAString(parent.Host.SimDescription.IsFemale, "Gameplay/Situations/Party:PartyBeginsTNS", new object[] { parent.Host.SimDescription }); StyledNotification.Format format = new StyledNotification.Format(titleText, ObjectGuid.InvalidObjectGuid, parent.Host.ObjectId, StyledNotification.NotificationStyle.kGameMessagePositive); StyledNotification.Show(format, "w_party"); } }