Fix nuke disk erroneously being marked 'left behind' (#31602)

Fix erroneous 'disk left behind' objective
This commit is contained in:
themias
2024-08-28 16:05:04 -04:00
committed by GitHub
parent af35c2b773
commit bea72106b7

View File

@@ -215,9 +215,10 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
var diskAtCentCom = false; var diskAtCentCom = false;
var diskQuery = AllEntityQuery<NukeDiskComponent, TransformComponent>(); var diskQuery = AllEntityQuery<NukeDiskComponent, TransformComponent>();
while (diskQuery.MoveNext(out _, out var transform)) while (diskQuery.MoveNext(out var diskUid, out _, out var transform))
{ {
diskAtCentCom = transform.MapUid != null && centcomms.Contains(transform.MapUid.Value); diskAtCentCom = transform.MapUid != null && centcomms.Contains(transform.MapUid.Value);
diskAtCentCom |= _emergency.IsTargetEscaping(diskUid);
// TODO: The target station should be stored, and the nuke disk should store its original station. // TODO: The target station should be stored, and the nuke disk should store its original station.
// This is fine for now, because we can assume a single station in base SS14. // This is fine for now, because we can assume a single station in base SS14.