From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Sun, 28 Jul 2024 08:25:40 +0000 (-0700) Subject: Update stomach removal and lung removal smite to not use Component.Owner (#29927) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=79fa810b9c41374dd9539aa3de3107523b083b8b;p=space-station-14.git Update stomach removal and lung removal smite to not use Component.Owner (#29927) * Update stomach removal and lung removal smite * New function makes things simple --------- Co-authored-by: plykiya --- diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs b/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs index 3328563116..1f5abf6726 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs @@ -361,9 +361,9 @@ public sealed partial class AdminVerbSystem Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Species/Human/organs.rsi"), "stomach"), Act = () => { - foreach (var (component, _) in _bodySystem.GetBodyOrganComponents(args.Target, body)) + foreach (var entity in _bodySystem.GetBodyOrganEntityComps((args.Target, body))) { - QueueDel(component.Owner); + QueueDel(entity.Owner); } _popupSystem.PopupEntity(Loc.GetString("admin-smite-stomach-removal-self"), args.Target, @@ -381,9 +381,9 @@ public sealed partial class AdminVerbSystem Icon = new SpriteSpecifier.Rsi(new ("/Textures/Mobs/Species/Human/organs.rsi"), "lung-r"), Act = () => { - foreach (var (component, _) in _bodySystem.GetBodyOrganComponents(args.Target, body)) + foreach (var entity in _bodySystem.GetBodyOrganEntityComps((args.Target, body))) { - QueueDel(component.Owner); + QueueDel(entity.Owner); } _popupSystem.PopupEntity(Loc.GetString("admin-smite-lung-removal-self"), args.Target,