mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
* proof of concept * full implementation * I commited a crime * t * min players increase (cherry picked from commit 470c869ce2cd14136662b1895f2a8e31e68f6f6c) Signed-off-by: Spatison <137375981+Spatison@users.noreply.github.com>
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Content.Server.StationEvents.Events;
|
|
using Content.Shared.Access;
|
|
using Content.Shared.Destructible.Thresholds;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Server.StationEvents.Components;
|
|
|
|
/// <summary>
|
|
/// Greytide Virus event specific configuration
|
|
/// </summary>
|
|
[RegisterComponent, Access(typeof(GreytideVirusRule))]
|
|
public sealed partial class GreytideVirusRuleComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Range from which the severity is randomly picked from.
|
|
/// </summary>
|
|
[DataField]
|
|
public MinMax SeverityRange = new(1, 3);
|
|
|
|
/// <summary>
|
|
/// Severity corresponding to the number of access groups affected.
|
|
/// Will pick randomly from the SeverityRange if not specified.
|
|
/// </summary>
|
|
[DataField]
|
|
public int? Severity;
|
|
|
|
/// <summary>
|
|
/// Access groups to pick from.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<AccessGroupPrototype>> AccessGroups = new();
|
|
|
|
/// <summary>
|
|
/// Entities with this access level will be ignored.
|
|
/// </summary>
|
|
[DataField]
|
|
public List<ProtoId<AccessLevelPrototype>> Blacklist = new();
|
|
}
|