Added number of cuffed hands check

This commit is contained in:
Vanessa 2026-08-14 13:48:05 -05:00
parent d7b051bd14
commit 3727f04b61
3 changed files with 5 additions and 5 deletions

View File

@ -528,9 +528,9 @@ public sealed class NukeopsRuleSystem : GameRuleSystem<NukeopsRuleComponent>
}
var operativesAlive = operatives
.Any(op => op.Comp2.CurrentState == MobState.Alive
&& op.Comp1.Running
&& !TryComp<CuffableComponent>(op, out _)); // in the case the crew keeps one alive
.Any(op => op.Comp1.Running
&& op.Comp2.CurrentState == MobState.Alive
&& TryComp<CuffableComponent>(op, out var cuffable) && cuffable.CuffedHandCount == 0); // in the case the crew keeps one alive
// END DeltaV
if (operativesAlive)

View File

@ -33,7 +33,7 @@ public sealed partial class GameTicker
public bool ConvertRoundToSurvival()
{
// Ramping scheduler is already added. Do nothing.
if (IsGameRuleActive(RampingSchedulerProto))
if (IsGameRuleAdded(RampingSchedulerProto))
{
_chatManager.SendAdminAlert("RampingStationEventScheduler detected. No rules added.");
return true;

View File

@ -441,7 +441,7 @@
min: 600
max: 900
- type: ZombieRule
isRoundStartZombies: true # DeltaV - concert to survival if they all die
isRoundStartZombies: true # DeltaV - convert to survival if they all die
- type: DelayedRule # DeltaV: Grace period of 5 minutes before you can turn, to avoid a random passenger ruining your plan
delay: 300
delayedComponents: