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