Skip to content

Commit

Permalink
Add KAC alarm for leader retirement and program deadline (#2501)
Browse files Browse the repository at this point in the history
* Update StrategyRP0.cs

* use title instead of name

* only activate when its a leader

* add alarm to programs ending

* remove alarm from here

* make deadline alarms work?

* Update StrategyRP0.cs
  • Loading branch information
Clayell authored Feb 15, 2025
1 parent 144849f commit d1696d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/RP0/Leaders/StrategyRP0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void PerformActivate(bool useCurrency)
Programs.ProgramHandler.Instance.OnLeaderChange();
// FIXME add setup cost if we add setup costs to leaders
CareerLog.Instance?.AddLeaderEvent(Config.Name, true, 0d);
KACWrapper.KAC.CreateAlarm(KACWrapper.KACAPI.AlarmTypeEnum.Crew, $"Retirement: {ConfigRP0.Title}", DateActivated + LongestDuration);
}
}

Expand Down

0 comments on commit d1696d6

Please sign in to comment.