// Token: 0x06006FBB RID: 28603 RVA: 0x0026CF1C File Offset: 0x0026BF1C private void EventCallbackResurrectSimUnlucky(StateMachineClient sender, IEvent evt) { this.mDeathProgress = GrimReaperSituation.ReapSoul.DeathProgress.UnluckyPostEvent; if (GrimReaperSituation.ShouldDoDeathEvent(this.Target)) { StyledNotification.Format format = new StyledNotification.Format(Localization.LocalizeString("Gameplay/Services/GrimReaper:Unlucky1", new object[] { this.Target }), this.Actor.ObjectId, StyledNotification.NotificationStyle.kSimTalking); StyledNotification.Show(format); } this.EventCallbackResurrectSim(); }
// Token: 0x06006FBC RID: 28604 RVA: 0x0026CF78 File Offset: 0x0026BF78 private void EventCallbackResurrectSimRanting(StateMachineClient sender, IEvent evt) { this.mDeathProgress = GrimReaperSituation.ReapSoul.DeathProgress.UnluckyPostEvent; if (GrimReaperSituation.ShouldDoDeathEvent(this.Target)) { StyledNotification.Format format = new StyledNotification.Format(Localization.LocalizeString("Gameplay/Services/GrimReaper:RantingWarning", new object[] { this.Target }), this.Actor.ObjectId, StyledNotification.NotificationStyle.kSimTalking); StyledNotification.Show(format); } this.Target.BuffManager.AddElement(BuffNames.ThereAndBackAgain, Origin.FromRanting); this.EventCallbackResurrectSim(); }
// Token: 0x06006FBA RID: 28602 RVA: 0x0026CE70 File Offset: 0x0026BE70 public void EventCallbackResurrectSimDeathFlower(StateMachineClient sender, IEvent evt) { EventTracker.SendEvent(EventTypeId.kGotSavedByDeathFlower, this.Target); this.mDeathProgress = GrimReaperSituation.ReapSoul.DeathProgress.DeathFlowerPostEvent; if (GrimReaperSituation.ShouldDoDeathEvent(this.Target)) { StyledNotification.Format format = new StyledNotification.Format(Localization.LocalizeString("Gameplay/Services/GrimReaper:DeathFlower1", new object[] { this.Target }), this.Actor.ObjectId, StyledNotification.NotificationStyle.kSimTalking); StyledNotification.Show(format); } ThoughtBalloonManager.BalloonData balloonData = new ThoughtBalloonManager.BalloonData(this.mDeathFlower.GetThoughtBalloonThumbnailKey()); balloonData.mPriority = ThoughtBalloonPriority.High; balloonData.Duration = ThoughtBalloonDuration.Medium; balloonData.mCoolDown = ThoughtBalloonCooldown.Medium; balloonData.LowAxis = ThoughtBalloonAxis.kLike; this.Actor.ThoughtBalloonManager.ShowBalloon(balloonData); this.EventCallbackResurrectSim(); }
// Token: 0x06006FBF RID: 28607 RVA: 0x0026D324 File Offset: 0x0026C324 private void HandleNPCGrave() { if (this.mGrave.InInventory) { this.mGrave.SetOpacity(1f, 0f); return; } bool flag = false; Household activeHousehold = Household.ActiveHousehold; if (activeHousehold != null) { flag = ((this.Target.SimDescription.GetMiniSimForProtection().ProtectionFlags & MiniSimDescription.ProtectionFlag.PartialFromPlayer) == MiniSimDescription.ProtectionFlag.PartialFromPlayer || Notifications.HasSignificantRelationship(activeHousehold, this.Target.SimDescription)); } if (flag) { GrimReaperSituation.AddGraveToRandomMausoleum(this.mGrave); return; } this.mGrave.Destroy(); }