Ion storm event (#20277)
* ion storm event prototype + locale * add lawsets * use lawsets, make borgs ion storm targets * ion storm rule and ion storm target * lawset prototype * use lawsets * update silicon law system to use lawsets and support ion storm event * new toys * fix * more fix * fixy * ion storm admin logging * assigning laws makes borg provide its own laws, other stuff * 1h reoccurence * 50% chance * better call saul * emagLaws is required * add announcment audio * fixy * family friendly gaming * fixy * address reviews * fixy * more fixy and no erp * pro --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.List;
|
||||
using Robust.Shared.Prototypes;
|
||||
|
||||
namespace Content.Shared.Silicons.Laws.Components;
|
||||
|
||||
@@ -9,8 +9,15 @@ namespace Content.Shared.Silicons.Laws.Components;
|
||||
public sealed partial class SiliconLawProviderComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The laws that are provided.
|
||||
/// The id of the lawset that is being provided.
|
||||
/// </summary>
|
||||
[DataField("laws", required: true, customTypeSerializer: typeof(PrototypeIdListSerializer<SiliconLawPrototype>))]
|
||||
public List<string> Laws = new();
|
||||
[DataField(required: true)]
|
||||
public ProtoId<SiliconLawsetPrototype> Laws = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Lawset created from the prototype id.
|
||||
/// Cached when getting laws and only modified during an ion storm event.
|
||||
/// </summary>
|
||||
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
||||
public SiliconLawset? Lawset;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user