Files
wwdpublic/Content.Server/StationEvents/Components/AirlockVirusRuleComponent.cs
VMSolidus 6b690a5b89 Graytide Virus Event (#1293)
# Description

This is a simple event remake of the classic Graytide Virus event from
SS13. A virus infects "Some of the airlocks" on the station, but more
specifically it infects the security airlocks, causing them to emag
themselves after a short delay. As the name of the airlock virus
implies, this lets the prisoners out, and the greytiders in, until an
engineer can get to sec and repair the airlocks. It can be a rare and
somewhat very literal "Get Outa Jail/Second Chance" for traitors who are
caught and permabrigged earlier in the round.

# Changelog

🆑
- add: Added the GR4YT1D3 Virus event.

---------

Co-authored-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com>
(cherry picked from commit 2e66dc9c15c9808e8f4285e9cadec1dad3df1f49)
2025-01-14 00:33:04 +03:00

20 lines
558 B
C#

using Content.Server.StationEvents.Events;
namespace Content.Server.StationEvents.Components;
[RegisterComponent]
public sealed partial class AirlockVirusRuleComponent : Component
{
/// <summary>
/// The minimum amount of time in seconds before each infected door is self-emagged.
/// </summary>
[DataField]
public int MinimumTimeToEmag = 30;
/// <summary>
/// The maximum amount of time in seconds before each infected door is self-emagged.
/// </summary>
[DataField]
public int MaximumTimeToEmag = 120;
}