* Change emagged laws to append modifiers instead of completely changing them. * Maybe fix everything not working * bugfix * Fix missing secrecy law and allow basic borgs to be emagged correctly * Localization * Actual localization * test * Test * Remove dummy debug value * Fix bad law ordering * Tweak the secrecy law * Minor law tweaks * Remove obsolete argument * Fix YAML
47 lines
1.5 KiB
C#
47 lines
1.5 KiB
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Audio;
|
|
|
|
namespace Content.Shared.Silicons.Laws.Components;
|
|
|
|
/// <summary>
|
|
/// This is used for an entity that grants a special "obey" law when emagged.
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, Access(typeof(SharedSiliconLawSystem))]
|
|
public sealed partial class EmagSiliconLawComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The name of the person who emagged this law provider.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public string? OwnerName;
|
|
|
|
/// <summary>
|
|
/// Does the panel need to be open to EMAG this law provider.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public bool RequireOpenPanel = true;
|
|
|
|
/// <summary>
|
|
/// How long the borg is stunned when it's emagged. Setting to 0 will disable it.
|
|
/// </summary>
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan StunTime = TimeSpan.Zero;
|
|
|
|
/// <summary>
|
|
/// A role given to entities with this component when they are emagged.
|
|
/// Mostly just for admin purposes.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<AntagPrototype>? AntagonistRole = "SubvertedSilicon";
|
|
|
|
/// <summary>
|
|
/// The sound that plays for the borg player
|
|
/// to let them know they've been emagged
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier EmaggedSound = new SoundPathSpecifier("/Audio/Ambience/Antag/emagged_borg.ogg");
|
|
|
|
}
|