Barotrauma Client Doc
Barotrauma.AfflictionPrefab.PeriodicEffect Class Reference

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 MinStrength
 

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>

Definition at line 578 of file AfflictionPrefab.cs.

Constructor & Destructor Documentation

◆ PeriodicEffect()

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

Definition at line 584 of file AfflictionPrefab.cs.

Member Data Documentation

◆ MinInterval

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MinInterval

Definition at line 581 of file AfflictionPrefab.cs.

◆ MinStrength

readonly float Barotrauma.AfflictionPrefab.PeriodicEffect.MinStrength

Definition at line 582 of file AfflictionPrefab.cs.

◆ StatusEffects

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

Definition at line 580 of file AfflictionPrefab.cs.