Barotrauma Server
Loading...
Searching...
No Matches
Barotrauma.AfflictionPrefab.PeriodicEffect Class Referencesealed

PeriodicEffect applies StatusEffects to the character periodically. More...

Public Member Functions

 PeriodicEffect (ContentXElement element, string parentDebugName)
 

Public Attributes

readonly List< StatusEffectStatusEffects = new List<StatusEffect>()
 
readonly float MinInterval
 
readonly float MaxInterval
 
readonly float MinStrength
 
readonly float MaxStrength
 

Detailed Description

PeriodicEffect applies StatusEffects to the character periodically.

<doc> <SubElement identifier="StatusEffect" type="StatusEffect" > <Field identifier="Interval" type="float" defaultValue="1.0"> How often the status effect is applied in seconds. Setting this attribute will set both the min and max interval to the specified value. </Field> <Field identifier="MinInterval" type="float" defaultValue="1.0"> Minimum interval between applying the status effect in seconds. </Field> <Field identifier="MaxInterval" type="float" defaultValue="1.0"> Maximum interval between applying the status effect in seconds. </Field> </doc>

Constructor & Destructor Documentation

◆ PeriodicEffect()

Barotrauma.AfflictionPrefab.PeriodicEffect.PeriodicEffect ( ContentXElement element,
string parentDebugName )

Member Data Documentation

◆ MaxInterval

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MaxInterval

◆ MaxStrength

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MaxStrength

◆ MinInterval

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MinInterval

◆ MinStrength

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MinStrength

◆ StatusEffects

readonly List<StatusEffect> Barotrauma.AfflictionPrefab.PeriodicEffect.StatusEffects = new List<StatusEffect>()

The documentation for this class was generated from the following file: