CatStation/Content.Server/Dragon/Components/DragonRiftComponent.cs
deltanedas cf7fde3d62
Big prototype and datafield cleanup (#45202)
* giant protoid cleanup

* yml changes

* !

---------

Co-authored-by: deltanedas <@deltanedas:goida.zip>
2026-08-12 02:07:22 +00:00

42 lines
1 KiB
C#

using Content.Shared.Dragon;
using Robust.Shared.Prototypes;
namespace Content.Server.Dragon;
// TODO: replace accumulators with timespan logic
[RegisterComponent]
public sealed partial class DragonRiftComponent : SharedDragonRiftComponent
{
/// <summary>
/// Dragon that spawned this rift.
/// </summary>
[DataField]
public EntityUid? Dragon;
/// <summary>
/// How long the rift has been active.
/// </summary>
[DataField]
public float Accumulator = 0f;
/// <summary>
/// The maximum amount we can accumulate before becoming impervious.
/// </summary>
[DataField("maxAccumualator")] // load bearing typo...
public float MaxAccumulator = 300f;
/// <summary>
/// Accumulation of the spawn timer.
/// </summary>
[DataField]
public float SpawnAccumulator = 30f;
/// <summary>
/// How long it takes for a new spawn to be added.
/// </summary>
[DataField]
public float SpawnCooldown = 30f;
[DataField("spawn")]
public EntProtoId SpawnPrototype = "MobCarpDragon";
}