]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Tweak "Escape" objective to allow yellowtexting (#37680)
authorScarKy0 <106310278+ScarKy0@users.noreply.github.com>
Thu, 22 May 2025 03:25:07 +0000 (05:25 +0200)
committerGitHub <noreply@github.com>
Thu, 22 May 2025 03:25:07 +0000 (20:25 -0700)
init

Content.Server/Objectives/Systems/EscapeShuttleConditionSystem.cs

index 5f8f680d9ef0238edad6873375479cea74aeed66..125e15e615927ffe95f817049f29c91681733ac5 100644 (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;