From 79fa810b9c41374dd9539aa3de3107523b083b8b Mon Sep 17 00:00:00 2001 From: Plykiya <58439124+Plykiya@users.noreply.github.com> Date: Sun, 28 Jul 2024 01:25:40 -0700 Subject: [PATCH] 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 --- .../Administration/Systems/AdminVerbSystem.Smites.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs b/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs index 3328563116135e..1f5abf6726bab2 100644 --- a/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs +++ b/Content.Server/Administration/Systems/AdminVerbSystem.Smites.cs @@ -361,9 +361,9 @@ private void AddSmiteVerbs(GetVerbsEvent args) 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 @@ private void AddSmiteVerbs(GetVerbsEvent args) 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,