LightFlickerArtifactComponent.cs 571 B

1234567891011121314151617181920
  1. namespace Content.Server.Xenoarchaeology.XenoArtifacts.Effects.Components;
  2. /// <summary>
  3. /// Flickers all the lights within a certain radius.
  4. /// </summary>
  5. [RegisterComponent]
  6. public sealed partial class LightFlickerArtifactComponent : Component
  7. {
  8. /// <summary>
  9. /// Lights within this radius will be flickered on activation
  10. /// </summary>
  11. [DataField("radius")]
  12. public float Radius = 4;
  13. /// <summary>
  14. /// The chance that the light will flicker
  15. /// </summary>
  16. [DataField("flickerChance")]
  17. public float FlickerChance = 0.75f;
  18. }