Files
tbd-station-14/Content.Server/Anomaly/Components/ShuffleParticlesAnomalyComponent.cs
Ed a4ec01d471 Anomalies behaviours (#24683)
* Added new anomaly particle

* Add basic anomaly behaviour

* +2 parametres

* add functional to new particle

* add components to behaviours

* big content

* add shuffle, moved thing to server

* clean up

* fixes

* random pick redo

* bonjour behavioUr

* fix AJCM

* fix

* add some new behaviours

* power modifier behaviour

* rmeove timer

* new event for update ui fix

* refactor!

* fixes

* enum

* Fix mapinit

* Minor touches

---------

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2024-04-01 19:29:13 +11:00

29 lines
769 B
C#

using Content.Server.Anomaly.Effects;
namespace Content.Server.Anomaly.Components;
/// <summary>
/// Shuffle Particle types in some situations
/// </summary>
[RegisterComponent, Access(typeof(ShuffleParticlesAnomalySystem))]
public sealed partial class ShuffleParticlesAnomalyComponent : Component
{
/// <summary>
/// Prob() chance to randomize particle types after Anomaly pulation
/// </summary>
[DataField]
public bool ShuffleOnPulse = false;
/// <summary>
/// Prob() chance to randomize particle types after APE or CHIMP projectile
/// </summary>
[DataField]
public bool ShuffleOnParticleHit = false;
/// <summary>
/// Chance to random particles
/// </summary>
[DataField]
public float Prob = 0.5f;
}