CatStation/Content.Server/Anomaly/Components/ProjectileAnomalyComponent.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

37 lines
956 B
C#

using Robust.Shared.Prototypes;
namespace Content.Server.Anomaly.Components;
[RegisterComponent]
public sealed partial class ProjectileAnomalyComponent : Component
{
/// <summary>
/// The prototype of the projectile that will be shot when the anomaly pulses
/// </summary>
[DataField(required: true)]
public EntProtoId ProjectilePrototype;
/// <summary>
/// The speed <see cref="ProjectilePrototype"/> can travel
/// </summary>
[DataField]
public float ProjectileSpeed = 30f;
/// <summary>
/// The minimum number of projectiles shot per pulse
/// </summary>
[DataField]
public int MinProjectiles = 2;
/// <summary>
/// The MAXIMUM number of projectiles shot per pulse
/// </summary>
[DataField]
public int MaxProjectiles = 9;
/// <summary>
/// The MAXIMUM range for targeting entities
/// </summary>
[DataField]
public float ProjectileRange = 50f;
}