]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Slight organ loss change (#24475)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Thu, 25 Jan 2024 01:06:49 +0000 (12:06 +1100)
committerGitHub <noreply@github.com>
Thu, 25 Jan 2024 01:06:49 +0000 (18:06 -0700)
Both should be sufficient to avoid the bandaid bug but this one is more accurate.

Content.Shared/Body/Systems/SharedBodySystem.Parts.cs

index 970eee694386023c483a1b237a9c2d03958684d6..e07aac06226e99278aaf73a89231df9d998f2e82 100644 (file)
@@ -172,7 +172,7 @@ public partial class SharedBodySystem
         if (!Resolve(parent, ref bodyComp, false))
             return;
 
-        if (_timing.IsFirstTimePredicted && component.IsVital && !GetBodyChildrenOfType(parent, component.PartType, bodyComp).Any())
+        if (!_timing.ApplyingState && component.IsVital && !GetBodyChildrenOfType(parent, component.PartType, bodyComp).Any())
         {
             // TODO BODY SYSTEM KILL : remove this when wounding and required parts are implemented properly
             var damage = new DamageSpecifier(Prototypes.Index<DamageTypePrototype>("Bloodloss"), 300);