Files
Delta-v/Content.Shared/_DV/Zombies/ZombieComponent.cs
T
Vanessaandpre-commit-ci[bot] f9880c148b Cloned zombie players no longer get mauled by cats (#6053)
* Moved DeltaV modifications of ZombieSystem to a partial class. Fixed factions and pacifist trait on zombie cloning. Added survival objective to cloned II.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-06-19 17:42:45 -04:00

24 lines
932 B
C#

using Content.Shared.NPC.Prototypes;
using Robust.Shared.Prototypes;
namespace Content.Shared.Zombies;
public sealed partial class ZombieComponent
{
/// <summary>
/// DeltaV - The list of factions that an entity is part of from before they were zombified.
/// The zombification process removes them, but cloning a zombie copies the NPCFactionMemberComponent
/// so they are still considered a zombie faction-wise, so we need to keep track of what they had right
/// before the factions are removed.
/// </summary>
[DataField]
public List<ProtoId<NpcFactionPrototype>> FactionsBeforeZombification = new();
/// <summary>
/// DeltaV - Tracks if the entity was a pacifist before turning into a zombie. Although, there are other
/// scenarios where the person might be pacified but those are usually temporary.
/// </summary>
public bool WasPacisfistBeforeZombification = false;
}