From f78280501a1757e7c6f124d1efc1bc7c2e470767 Mon Sep 17 00:00:00 2001 From: Prole <172158352+Prole0@users.noreply.github.com> Date: Wed, 20 Aug 2025 16:35:38 -0700 Subject: [PATCH] Moving Zombie Components to Shared (#39791) * Moving Comps to Shared * Requested Changes --- Content.Server/Zombies/ZombifyOnDeathComponent.cs | 8 -------- .../Zombies/ZombieImmuneComponent.cs | 6 ++++-- Content.Shared/Zombies/ZombifyOnDeathComponent.cs | 12 ++++++++++++ 3 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 Content.Server/Zombies/ZombifyOnDeathComponent.cs rename {Content.Server => Content.Shared}/Zombies/ZombieImmuneComponent.cs (60%) create mode 100644 Content.Shared/Zombies/ZombifyOnDeathComponent.cs diff --git a/Content.Server/Zombies/ZombifyOnDeathComponent.cs b/Content.Server/Zombies/ZombifyOnDeathComponent.cs deleted file mode 100644 index dff17c4613..0000000000 --- a/Content.Server/Zombies/ZombifyOnDeathComponent.cs +++ /dev/null @@ -1,8 +0,0 @@ -namespace Content.Server.Zombies -{ - [RegisterComponent] - public sealed partial class ZombifyOnDeathComponent : Component - { - //this is not the component you are looking for - } -} diff --git a/Content.Server/Zombies/ZombieImmuneComponent.cs b/Content.Shared/Zombies/ZombieImmuneComponent.cs similarity index 60% rename from Content.Server/Zombies/ZombieImmuneComponent.cs rename to Content.Shared/Zombies/ZombieImmuneComponent.cs index 76a8ab9e67..18ad228363 100644 --- a/Content.Server/Zombies/ZombieImmuneComponent.cs +++ b/Content.Shared/Zombies/ZombieImmuneComponent.cs @@ -1,9 +1,11 @@ -namespace Content.Server.Zombies; +using Robust.Shared.GameStates; + +namespace Content.Shared.Zombies; /// /// Entities with this component cannot be zombified. /// -[RegisterComponent] +[RegisterComponent, NetworkedComponent] public sealed partial class ZombieImmuneComponent : Component { //still no diff --git a/Content.Shared/Zombies/ZombifyOnDeathComponent.cs b/Content.Shared/Zombies/ZombifyOnDeathComponent.cs new file mode 100644 index 0000000000..138ea6e409 --- /dev/null +++ b/Content.Shared/Zombies/ZombifyOnDeathComponent.cs @@ -0,0 +1,12 @@ +using Robust.Shared.GameStates; + +namespace Content.Shared.Zombies; + +/// +/// Entities with this component zombify on death. +/// +[RegisterComponent, NetworkedComponent] +public sealed partial class ZombifyOnDeathComponent : Component +{ + //this is not the component you are looking for +} -- 2.51.2