Maybe fix dead bug (#24445)
This commit is contained in:
@@ -172,7 +172,7 @@ public partial class SharedBodySystem
|
|||||||
if (!Resolve(parent, ref bodyComp, false))
|
if (!Resolve(parent, ref bodyComp, false))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (component.IsVital && !GetBodyChildrenOfType(parent, component.PartType, bodyComp).Any())
|
if (_timing.IsFirstTimePredicted && 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);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Content.Shared.Movement.Systems;
|
|||||||
using Content.Shared.Standing;
|
using Content.Shared.Standing;
|
||||||
using Robust.Shared.Containers;
|
using Robust.Shared.Containers;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
|
using Robust.Shared.Timing;
|
||||||
|
|
||||||
namespace Content.Shared.Body.Systems;
|
namespace Content.Shared.Body.Systems;
|
||||||
|
|
||||||
@@ -27,6 +28,7 @@ public abstract partial class SharedBodySystem : EntitySystem
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public const string OrganSlotContainerIdPrefix = "body_organ_slot_";
|
public const string OrganSlotContainerIdPrefix = "body_organ_slot_";
|
||||||
|
|
||||||
|
[Dependency] private readonly IGameTiming _timing = default!;
|
||||||
[Dependency] protected readonly IPrototypeManager Prototypes = default!;
|
[Dependency] protected readonly IPrototypeManager Prototypes = default!;
|
||||||
[Dependency] protected readonly DamageableSystem Damageable = default!;
|
[Dependency] protected readonly DamageableSystem Damageable = default!;
|
||||||
[Dependency] protected readonly MovementSpeedModifierSystem Movement = default!;
|
[Dependency] protected readonly MovementSpeedModifierSystem Movement = default!;
|
||||||
|
|||||||
Reference in New Issue
Block a user