Slight organ loss change (#24475)

Both should be sufficient to avoid the bandaid bug but this one is more accurate.
This commit is contained in:
metalgearsloth
2024-01-25 12:06:49 +11:00
committed by GitHub
parent ce46281e39
commit 10b7ec5d29

View File

@@ -172,7 +172,7 @@ public partial class SharedBodySystem
if (!Resolve(parent, ref bodyComp, false)) if (!Resolve(parent, ref bodyComp, false))
return; 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 // TODO BODY SYSTEM KILL : remove this when wounding and required parts are implemented properly
var damage = new DamageSpecifier(Prototypes.Index<DamageTypePrototype>("Bloodloss"), 300); var damage = new DamageSpecifier(Prototypes.Index<DamageTypePrototype>("Bloodloss"), 300);