Files
crystall-punk-14/Content.Server/Anomaly/Components/AnomalousParticleComponent.cs

77 lines
2.6 KiB
C#
Raw Normal View History

using Content.Shared.Anomaly;
2023-04-23 19:58:45 -04:00
using Content.Shared.Anomaly.Components;
2023-01-17 00:05:20 -05:00
namespace Content.Server.Anomaly.Components;
/// <summary>
/// This is used for projectiles which affect anomalies through colliding with them.
/// </summary>
2023-03-23 01:53:32 -04:00
[RegisterComponent, Access(typeof(SharedAnomalySystem))]
public sealed partial class AnomalousParticleComponent : Component
2023-01-17 00:05:20 -05:00
{
/// <summary>
/// The type of particle that the projectile
/// imbues onto the anomaly on contact.
/// </summary>
[DataField(required: true)]
2023-01-17 00:05:20 -05:00
public AnomalousParticleType ParticleType;
/// <summary>
/// The fixture that's checked on collision.
/// </summary>
[DataField]
2023-01-17 00:05:20 -05:00
public string FixtureId = "projectile";
2023-04-23 19:58:45 -04:00
/// <summary>
/// The amount that the <see cref="AnomalyComponent.Severity"/> increases by when hit
/// of an anomalous particle of <seealso cref="AnomalyComponent.SeverityParticleType"/>.
/// </summary>
[DataField]
2023-04-23 19:58:45 -04:00
public float SeverityPerSeverityHit = 0.025f;
/// <summary>
/// The amount that the <see cref="AnomalyComponent.Stability"/> increases by when hit
/// of an anomalous particle of <seealso cref="AnomalyComponent.DestabilizingParticleType"/>.
/// </summary>
[DataField]
2023-04-23 19:58:45 -04:00
public float StabilityPerDestabilizingHit = 0.04f;
/// <summary>
/// The amount that the <see cref="AnomalyComponent.Stability"/> increases by when hit
/// of an anomalous particle of <seealso cref="AnomalyComponent.DestabilizingParticleType"/>.
/// </summary>
[DataField]
2023-04-23 19:58:45 -04:00
public float HealthPerWeakeningeHit = -0.05f;
/// <summary>
/// The amount that the <see cref="AnomalyComponent.Stability"/> increases by when hit
/// of an anomalous particle of <seealso cref="AnomalyComponent.DestabilizingParticleType"/>.
/// </summary>
[DataField]
2023-04-23 19:58:45 -04:00
public float StabilityPerWeakeningeHit = -0.1f;
/// <summary>
/// If this is true then the particle will always affect the stability of the anomaly.
/// </summary>
[DataField]
public bool DestabilzingOverride = false;
/// <summary>
/// If this is true then the particle will always affect the weakeness of the anomaly.
/// </summary>
[DataField]
public bool WeakeningOverride = false;
/// <summary>
/// If this is true then the particle will always affect the severity of the anomaly.
/// </summary>
[DataField]
public bool SeverityOverride = false;
/// <summary>
/// If this is true then the particle will always affect the behaviour.
/// </summary>
[DataField]
public bool TransmutationOverride = false;
2023-01-17 00:05:20 -05:00
}