private void TryLaunch() { if (this.CanLaunchNow) { ShipCountdown.InitiateCountdown(this); } }
private void TryLaunch() { if (CanLaunchNow) { ShipCountdown.InitiateCountdown(parentBuilding); } }
public void ForceLaunch() { ShipCountdown.InitiateCountdown(this); if (base.Spawned) { QuestUtility.SendQuestTargetSignals(base.Map.Parent.questTags, "LaunchedShip"); } }
public override void Notify_QuestSignalReceived(Signal signal) { base.Notify_QuestSignalReceived(signal); if (!(signal.tag == inSignal) || ShipCountdown.CountingDown) { return; } if (!Find.TickManager.Paused) { Find.TickManager.CurTimeSpeed = TimeSpeed.Normal; } if (!signal.args.TryGetArg("SENTCOLONISTS", out List <Pawn> arg)) { arg = null; } StringBuilder stringBuilder = new StringBuilder(); if (arg != null) { for (int i = 0; i < arg.Count; i++) { stringBuilder.AppendLine(" " + arg[i].LabelCap); } Find.StoryWatcher.statsRecord.colonistsLaunched += arg.Count; } ShipCountdown.InitiateCountdown(GameVictoryUtility.MakeEndCredits(introText, endingText, stringBuilder.ToString())); if (arg == null) { return; } for (int j = 0; j < arg.Count; j++) { if (!arg[j].Destroyed) { arg[j].Destroy(); } } }