Delta-v/Content.Shared/_DV/CosmicCult/Components/CosmicEntropyDebuffComponen...

33 lines
862 B
C#

using Content.Shared.Damage;
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom;
namespace Content.Shared._DV.CosmicCult.Components;
/// <summary>
/// Makes the target take damage over time.
/// Meant to be used in conjunction with statusEffectSystem.
/// </summary>
[RegisterComponent]
[AutoGenerateComponentPause]
public sealed partial class CosmicEntropyDebuffComponent : Component
{
[DataField(customTypeSerializer: typeof(TimeOffsetSerializer))]
[AutoPausedField]
public TimeSpan CheckTimer = default!;
[DataField]
public TimeSpan CheckWait = TimeSpan.FromSeconds(1);
/// <summary>
/// The debuff applied while the component is present.
/// </summary>
[DataField]
public DamageSpecifier Degen = new()
{
DamageDict = new()
{
{ "Cold", 0.1},
}
};
}