mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-10 10:51:14 +03:00
* giant protoid cleanup * yml changes * ! --------- Co-authored-by: deltanedas <@deltanedas:goida.zip>
42 lines
1 KiB
C#
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";
|
|
}
|