* FactionClothing * swtich carp to the Dragon faction * add carp hardsuit * add carp hardsuit to uplink * fixes * webedit ops 1 * why did i name it that wtf * among --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
28 lines
856 B
C#
28 lines
856 B
C#
using Content.Shared.Clothing.EntitySystems;
|
|
using Content.Shared.NPC.Prototypes;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Clothing.Components;
|
|
|
|
/// <summary>
|
|
/// When equipped, adds the wearer to a faction.
|
|
/// When removed, removes the wearer from a faction.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(FactionClothingSystem))]
|
|
public sealed partial class FactionClothingComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Faction to add and remove.
|
|
/// </summary>
|
|
[DataField(required: true)]
|
|
public ProtoId<NpcFactionPrototype> Faction = string.Empty;
|
|
|
|
/// <summary>
|
|
/// If true, the wearer was already part of the faction.
|
|
/// This prevents wrongly removing them after removing the item.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool AlreadyMember;
|
|
}
|