* Mega Antag Refactor * last minute delta save * more workshopping * more shit * ok tested this for once * okkkkk sure * generic delays for starting rules * well darn * nukies partially * ouagh * ballin' faded and smonkin wed * obliterated the diff * Spread my arms and soak up congratulations * I've got plenty of love, but nothing to show for it * but there’s too much sunlight Shining on my laptop monitor, so I Can’t see anything with any amount of clarity * ok this junk * OOK! * fubar * most of sloth's review * oh boy * eek * hell yea! * ASDFJASDJFvsakcvjkzjnhhhyh
29 lines
926 B
C#
29 lines
926 B
C#
using Content.Shared.Roles;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.GameTicking.Rules.Components;
|
|
|
|
[RegisterComponent, Access(typeof(ZombieRuleSystem))]
|
|
public sealed partial class ZombieRuleComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// When the round will next check for round end.
|
|
/// </summary>
|
|
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
|
|
public TimeSpan? NextRoundEndCheck;
|
|
|
|
/// <summary>
|
|
/// The amount of time between each check for the end of the round.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan EndCheckDelay = TimeSpan.FromSeconds(30);
|
|
|
|
/// <summary>
|
|
/// After this amount of the crew become zombies, the shuttle will be automatically called.
|
|
/// </summary>
|
|
[DataField]
|
|
public float ZombieShuttleCallPercentage = 0.7f;
|
|
}
|