Revolutionaries (#18477)
Co-authored-by: coolmankid12345 <coolmankid12345@users.noreply.github.com> Co-authored-by: EmoGarbage404 <retron404@gmail.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
using Robust.Shared.GameStates;
|
||||
|
||||
namespace Content.Shared.Revolutionary.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Component used for allowing non-humans to be converted. (Mainly monkeys)
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRevolutionarySystem))]
|
||||
public sealed partial class AlwaysRevolutionaryConvertibleComponent : Component
|
||||
{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
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(SharedRevolutionarySystem))]
|
||||
public sealed partial class HeadRevolutionaryComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The status icon corresponding to the head revolutionary.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public ProtoId<StatusIconPrototype> HeadRevStatusIcon = "HeadRevolutionaryFaction";
|
||||
|
||||
/// <summary>
|
||||
/// How long the stun will last after the user is converted.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public TimeSpan StunTime = TimeSpan.FromSeconds(3);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Content.Shared.StatusIcon;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Revolutionary.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Used for marking regular revs as well as storing icon prototypes so you can see fellow revs.
|
||||
/// </summary>
|
||||
[RegisterComponent, NetworkedComponent, Access(typeof(SharedRevolutionarySystem))]
|
||||
public sealed partial class RevolutionaryComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The status icon prototype displayed for revolutionaries
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public ProtoId<StatusIconPrototype> RevStatusIcon = "RevolutionaryFaction";
|
||||
}
|
||||
Reference in New Issue
Block a user