using Robust.Shared.Prototypes; using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype; namespace Content.Server.Anomaly.Components; [RegisterComponent] public sealed class ProjectileAnomalyComponent : Component { /// /// The prototype of the projectile that will be shot when the anomaly pulses /// [DataField("projectilePrototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer))] public string ProjectilePrototype = default!; /// /// The MAXIMUM speed can travel /// [DataField("maxProjectileSpeed")] public float MaxProjectileSpeed = 30f; /// /// The MAXIMUM number of projectiles shot per pulse /// [DataField("maxProjectiles")] public int MaxProjectiles = 5; /// /// The MAXIMUM range for targeting entities /// [DataField("projectileRange")] public float ProjectileRange = 50f; /// /// Chance that a non sentient entity will be targeted, value must be between 0.0-1.0 /// [DataField("targetNonSentientChance")] public float TargetNonSentientChance = 0.5f; }