Barotrauma Server
Loading...
Searching...
No Matches
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.
 
readonly float MinValue
 Minimum value to apply.
 
readonly float MaxValue
 Minimum value to apply.
 

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" />
Effects are the primary way to add functionality to afflictions.
Definition AfflictionPrefab.cs:234

Constructor & Destructor Documentation

◆ AppliedStatValue()

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

Member Data Documentation

◆ MaxValue

readonly float Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.MaxValue

Minimum value to apply.

◆ MinValue

readonly float Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.MinValue

Minimum value to apply.

◆ StatType

readonly StatTypes Barotrauma.AfflictionPrefab.Effect.AppliedStatValue.StatType

Which StatType to apply.


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