mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
* Initial commit * RMC? I 'ardly know 'er * Sprout * Rework it to use job icons * Revert the one change * Always the one yaml * Easy review changes * We do a little salami * Review changes * NIGHTMARE NIGHTMARE NIGHTMARE * Update to use StatusIconPrototype only * Remove async * Aaaand remove the comment, bah * Review fixes * Update master * Add the ability for ghosts to see * Byte backing * Review fix + comment * Update to 90 min * Add todo message
27 lines
941 B
C#
27 lines
941 B
C#
using Content.Shared.Antag;
|
|
using Robust.Shared.GameStates;
|
|
using Content.Shared.StatusIcon;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Revolutionary.Components;
|
|
|
|
/// <summary>
|
|
/// Component used for marking a Head Rev for conversion and winning/losing.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(RevolutionarySystem))]
|
|
public sealed partial class HeadRevolutionaryComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The status icon corresponding to the head revolutionary.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public ProtoId<StatusIconPrototype> StatusIcon { get; set; } = "HeadRevolutionaryFaction";
|
|
|
|
/// <summary>
|
|
/// How long the stun will last after the user is converted.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan StunTime = TimeSpan.FromSeconds(3);
|
|
|
|
public override bool SessionSpecific => true;
|
|
}
|