Skip to content

Commit

Permalink
Forever my hero.
Browse files Browse the repository at this point in the history
  • Loading branch information
gluesniffler committed Nov 23, 2024
1 parent 7f0b88a commit 5c5ed5d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ public void Execute(EntityUid bodyId, DestructibleSystem system, EntityUid? caus
}
}

if (system.EntityManager.TryGetComponent<BodyPartComponent>(bodyId, out var bodyPart)
&& bodyPart.CanSever
&& system.BodySystem.BurnPart(bodyId, bodyPart))
if (system.EntityManager.TryGetComponent<BodyPartComponent>(bodyId, out var bodyPart))
{
sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyId)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
if (bodyPart.CanSever
&& system.BodySystem.BurnPart(bodyId, bodyPart))
sharedPopupSystem.PopupCoordinates(Loc.GetString("bodyburn-text-others", ("name", bodyId)), transformSystem.GetMoverCoordinates(bodyId), PopupType.LargeCaution);
}
else
{
Expand Down

0 comments on commit 5c5ed5d

Please sign in to comment.