ShuffleParticlesAnomalyComponent.cs 769 B

12345678910111213141516171819202122232425262728
  1. using Content.Server.Anomaly.Effects;
  2. namespace Content.Server.Anomaly.Components;
  3. /// <summary>
  4. /// Shuffle Particle types in some situations
  5. /// </summary>
  6. [RegisterComponent, Access(typeof(ShuffleParticlesAnomalySystem))]
  7. public sealed partial class ShuffleParticlesAnomalyComponent : Component
  8. {
  9. /// <summary>
  10. /// Prob() chance to randomize particle types after Anomaly pulation
  11. /// </summary>
  12. [DataField]
  13. public bool ShuffleOnPulse = false;
  14. /// <summary>
  15. /// Prob() chance to randomize particle types after APE or CHIMP projectile
  16. /// </summary>
  17. [DataField]
  18. public bool ShuffleOnParticleHit = false;
  19. /// <summary>
  20. /// Chance to random particles
  21. /// </summary>
  22. [DataField]
  23. public float Prob = 0.5f;
  24. }