mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 16:47:26 +00:00
* 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>
24 lines
932 B
C#
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;
|
|
}
|