Barotrauma Client Doc
Barotrauma.AfflictionPrefab.Effect.AppliedStatValue Struct Reference

StatType that will be applied to the affected character when the effect is active that is proportional to the effect's strength. More...

Public Member Functions

 AppliedStatValue (ContentXElement element)
 

Public Attributes

readonly StatTypes StatType
 Which StatType to apply More...
 
readonly float MinValue
 Minimum value to apply More...
 
readonly float MaxValue
 Minimum value to apply More...
 

Detailed Description

StatType that will be applied to the affected character when the effect is active that is proportional to the effect's strength.

<Effect minstrength="0" maxstrength="100">
<StatValue stattype="WalkingSpeed" minvalue="0.1" maxvalue="0.3" />
<StatValue stattype="MaximumHealthMultiplier" value="0.2" />
Effect(ContentXElement element, string parentDebugName)

Definition at line 375 of file AfflictionPrefab.cs.

Constructor & Destructor Documentation

◆ AppliedStatValue()

Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.AppliedStatValue ( ContentXElement  element)

Definition at line 397 of file AfflictionPrefab.cs.

Member Data Documentation

◆ MaxValue

readonly float Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.MaxValue

Minimum value to apply

Definition at line 390 of file AfflictionPrefab.cs.

◆ MinValue

readonly float Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.MinValue

Minimum value to apply

Definition at line 385 of file AfflictionPrefab.cs.

◆ StatType

readonly StatTypes Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.StatType

Which StatType to apply

Definition at line 380 of file AfflictionPrefab.cs.