Tweak "Escape" objective to allow yellowtexting (#37680)

init
This commit is contained in:
ScarKy0
2025-05-22 05:25:07 +02:00
committed by GitHub
parent aac32a771a
commit 0cb9e803e5

View File

@@ -30,8 +30,9 @@ public sealed class EscapeShuttleConditionSystem : EntitySystem
return 0f;
// You're not escaping if you're restrained!
// Granting 50% as to allow for partial completion of the objective.
if (TryComp<CuffableComponent>(mind.OwnedEntity, out var cuffed) && cuffed.CuffedHandCount > 0)
return 0f;
return _emergencyShuttle.IsTargetEscaping(mind.OwnedEntity.Value) ? 0.5f : 0f;
// Any emergency shuttle counts for this objective, but not pods.
return _emergencyShuttle.IsTargetEscaping(mind.OwnedEntity.Value) ? 1f : 0f;