using Content.Shared.Damage;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Server.Zombies;
///
/// Temporary because diseases suck.
///
[RegisterComponent]
public sealed partial class PendingZombieComponent : Component
{
///
/// Damage dealt every second to infected individuals.
///
[DataField("damage")] public DamageSpecifier Damage = new()
{
DamageDict = new ()
{
{ "Blunt", 0.25 },
{ "Poison", 0.1 },
}
};
///
/// A multiplier for 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 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 InfectionWarnings = new()
{
"zombie-infection-warning",
"zombie-infection-underway"
};
[DataField] public EntityUid? Action;
}