From d8265ce0265e543dcc1a42579e6356d1082474cb Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Sat, 9 Nov 2024 04:40:16 +0000 Subject: [PATCH] make meat spike drop organs (#2154) Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../Kitchen/EntitySystems/KitchenSpikeSystem.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs index fec65430c1..679656b54f 100644 --- a/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs +++ b/Content.Server/Kitchen/EntitySystems/KitchenSpikeSystem.cs @@ -3,6 +3,7 @@ using Content.Server.Body.Systems; using Content.Server.Kitchen.Components; using Content.Server.Popups; using Content.Shared.Chat; +using Content.Shared.Body.Part; // DeltaV using Content.Shared.Damage; using Content.Shared.Database; using Content.Shared.DoAfter; @@ -160,9 +161,12 @@ namespace Content.Server.Kitchen.EntitySystems _transform.SetCoordinates(victimUid, Transform(uid).Coordinates); // THE WHAT? // TODO: Need to be able to leave them on the spike to do DoT, see ss13. - var gibs = _bodySystem.GibBody(victimUid); + var gibs = _bodySystem.GibBody(victimUid, gibOrgans: true); // DeltaV: spawn organs foreach (var gib in gibs) { - QueueDel(gib); + // Begin DeltaV changes: Only delete limbs instead of organs + if (HasComp(gib)) + QueueDel(gib); + // End DeltaV changes } _audio.PlayEntity(component.SpikeSound, Filter.Pvs(uid), uid, true);