Ice anomaly buff (anti-box maneuvers) (#17293)

This commit is contained in:
Nemanja
2023-06-15 20:52:49 -04:00
committed by GitHub
parent 18837c305d
commit 39a42559ac
4 changed files with 44 additions and 36 deletions

View File

@@ -6,33 +6,33 @@ namespace Content.Server.Anomaly.Components;
[RegisterComponent]
public sealed class ProjectileAnomalyComponent : Component
{
/// <sumarry>
/// <summary>
/// The prototype of the projectile that will be shot when the anomaly pulses
/// </summary>
[DataField("projectilePrototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
[DataField("projectilePrototype", required: true, customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>)), ViewVariables(VVAccess.ReadWrite)]
public string ProjectilePrototype = default!;
/// <summary>
/// The MAXIMUM speed <see cref="ProjectilePrototype"/> can travel
/// The speed <see cref="ProjectilePrototype"/> can travel
/// </summary>
[DataField("maxProjectileSpeed")]
public float MaxProjectileSpeed = 30f;
[DataField("projectileSpeed"), ViewVariables(VVAccess.ReadWrite)]
public float ProjectileSpeed = 30f;
/// <summary>
/// The minimum number of projectiles shot per pulse
/// </summary>
[DataField("minProjectiles"), ViewVariables(VVAccess.ReadWrite)]
public int MinProjectiles = 2;
/// <summary>
/// The MAXIMUM number of projectiles shot per pulse
/// </summary>
[DataField("maxProjectiles")]
public int MaxProjectiles = 5;
[DataField("maxProjectiles"), ViewVariables(VVAccess.ReadWrite)]
public int MaxProjectiles = 9;
/// <summary>
/// The MAXIMUM range for targeting entities
/// </summary>
[DataField("projectileRange")]
[DataField("projectileRange"), ViewVariables(VVAccess.ReadWrite)]
public float ProjectileRange = 50f;
/// <summary>
/// Chance that a non sentient entity will be targeted, value must be between 0.0-1.0
/// </summary>
[DataField("targetNonSentientChance")]
public float TargetNonSentientChance = 0.5f;
}