Allow early salvage launches (#16503)

This commit is contained in:
metalgearsloth
2023-05-16 23:18:37 +10:00
committed by GitHub
parent e5d072fd59
commit 699b5816a8
4 changed files with 52 additions and 5 deletions

View File

@@ -96,6 +96,18 @@ public sealed partial class ShuttleSystem
return false;
}
if (uid != null)
{
var ev = new ConsoleFTLAttemptEvent(uid.Value, false, string.Empty);
RaiseLocalEvent(uid.Value, ref ev, true);
if (ev.Cancelled)
{
reason = ev.Reason;
return false;
}
}
reason = null;
return true;
}