* 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
72 lines
2.1 KiB
C#
72 lines
2.1 KiB
C#
using Content.Shared.Damage;
|
|
using Robust.Shared.Prototypes;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
|
|
|
|
namespace Content.Server.Zombies;
|
|
|
|
/// <summary>
|
|
/// Temporary because diseases suck.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed partial class PendingZombieComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Damage dealt every second to infected individuals.
|
|
/// </summary>
|
|
[DataField("damage")] public DamageSpecifier Damage = new()
|
|
{
|
|
DamageDict = new ()
|
|
{
|
|
{ "Poison", 0.2 },
|
|
}
|
|
};
|
|
|
|
/// <summary>
|
|
/// A multiplier for <see cref="Damage"/> applied when the entity is in critical condition.
|
|
/// </summary>
|
|
[DataField("critDamageMultiplier")]
|
|
public float CritDamageMultiplier = 10f;
|
|
|
|
[DataField("nextTick", customTypeSerializer:typeof(TimeOffsetSerializer))]
|
|
public TimeSpan NextTick;
|
|
|
|
/// <summary>
|
|
/// The amount of time left before the infected begins to take damage.
|
|
/// </summary>
|
|
[DataField("gracePeriod"), ViewVariables(VVAccess.ReadWrite)]
|
|
public TimeSpan GracePeriod = TimeSpan.Zero;
|
|
|
|
/// <summary>
|
|
/// The minimum amount of time initial infected have before they start taking infection damage.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan MinInitialInfectedGrace = TimeSpan.FromMinutes(12.5f);
|
|
|
|
/// <summary>
|
|
/// The maximum amount of time initial infected have before they start taking damage.
|
|
/// </summary>
|
|
[DataField]
|
|
public TimeSpan MaxInitialInfectedGrace = TimeSpan.FromMinutes(15f);
|
|
|
|
[DataField]
|
|
public EntProtoId ZombifySelfActionPrototype = "ActionTurnUndead";
|
|
|
|
/// <summary>
|
|
/// The chance each second that a warning will be shown.
|
|
/// </summary>
|
|
[DataField("infectionWarningChance")]
|
|
public float InfectionWarningChance = 0.0166f;
|
|
|
|
/// <summary>
|
|
/// Infection warnings shown as popups
|
|
/// </summary>
|
|
[DataField("infectionWarnings")]
|
|
public List<string> InfectionWarnings = new()
|
|
{
|
|
"zombie-infection-warning",
|
|
"zombie-infection-underway"
|
|
};
|
|
|
|
[DataField] public EntityUid? Action;
|
|
}
|