[FIX] Reboot (#794)

Update DeadStartupButtonSystem.cs
This commit is contained in:
Kutosss
2025-08-17 00:09:34 +03:00
committed by GitHub
parent 60fc0aaf4b
commit 3558bbf2e4

View File

@@ -42,10 +42,10 @@ public sealed class DeadStartupButtonSystem : SharedDeadStartupButtonSystem
|| !_mobState.IsDead(uid, mobStateComponent)
|| !TryComp<MobThresholdsComponent>(uid, out var mobThresholdsComponent)
|| !TryComp<DamageableComponent>(uid, out var damageable)
|| !_mobThreshold.TryGetThresholdForState(uid, MobState.Critical, out var criticalThreshold, mobThresholdsComponent))
|| !_mobThreshold.TryGetThresholdForState(uid, MobState.Dead, out var deadThreshold, mobThresholdsComponent))
return;
if (damageable.TotalDamage < criticalThreshold)
if (damageable.TotalDamage < deadThreshold)
_mobState.ChangeMobState(uid, MobState.Alive, mobStateComponent);
else
{