Affliction

Barotrauma.Affliction

Functions

Affliction(prefab, strength)

Affliction

Parameters

  • prefab AfflictionPrefab

  • strength number

Affliction.GetStrengthText(strength, maxStrength)

GetStrengthText

Parameters

  • strength number

  • maxStrength number

Returns

  • LocalizedString

ApplyStatusEffect(type, statusEffect, deltaTime, characterHealth, targetLimb)

ApplyStatusEffect

Parameters

  • type ActionType

  • statusEffect StatusEffect

  • deltaTime number

  • characterHealth CharacterHealth

  • targetLimb Limb

ApplyStatusEffects(type, deltaTime, characterHealth, targetLimb)

ApplyStatusEffects

Parameters

  • type ActionType

  • deltaTime number

  • characterHealth CharacterHealth

  • targetLimb Limb

CalculateDamagePerSecond(currentVitalityDecrease)

CalculateDamagePerSecond

Parameters

  • currentVitalityDecrease number

CopyProperties(source)

CopyProperties

Parameters

CreateMultiplied(multiplier, affliction)

CreateMultiplied

Parameters

  • multiplier number

Returns

Deserialize(element)

Deserialize

Parameters

  • element Xml.Linq.XElement

Equals(obj)

Equals

Parameters

  • obj Object

Returns

  • bool

GetActiveEffect()

GetActiveEffect

Returns

  • Effect

GetAfflictionOverlayMultiplier()

GetAfflictionOverlayMultiplier

Returns

  • number

GetBodyTint()

GetBodyTint

Returns

  • Microsoft.Xna.Framework.Color

GetChromaticAberrationStrength()

GetChromaticAberrationStrength

Returns

  • number

GetFaceTint()

GetFaceTint

Returns

  • Microsoft.Xna.Framework.Color

GetHashCode()

GetHashCode

Returns

  • number

GetRadialDistortStrength()

GetRadialDistortStrength

Returns

  • number

GetResistance(afflictionId, limbType)

GetResistance

Parameters

  • limbType LimbType

Returns

  • number

GetScreenBlurStrength()

GetScreenBlurStrength

Returns

  • number

GetScreenDistortStrength()

GetScreenDistortStrength

Returns

  • number

GetScreenGrainStrength()

GetScreenGrainStrength

Returns

  • number

GetSkillMultiplier()

GetSkillMultiplier

Returns

  • number

GetSpeedMultiplier()

GetSpeedMultiplier

Returns

  • number

GetStatValue(statType)

GetStatValue

Parameters

  • statType StatTypes

Returns

  • number

GetStrengthText()

GetStrengthText

Returns

  • LocalizedString

GetType()

GetType

Returns

  • Type

GetVitalityDecrease(characterHealth)

GetVitalityDecrease

Parameters

  • characterHealth CharacterHealth

Returns

  • number

GetVitalityDecrease(characterHealth, strength)

GetVitalityDecrease

Parameters

  • characterHealth CharacterHealth

  • strength number

Returns

  • number

HasFlag(flagType)

HasFlag

Parameters

  • flagType AbilityFlags

Returns

  • bool

Serialize(element)

Serialize

Parameters

  • element Xml.Linq.XElement

SetStrength(strength)

SetStrength

Parameters

  • strength number

ShouldShowIcon(afflictedCharacter)

ShouldShowIcon

Parameters

  • afflictedCharacter Character

Returns

  • bool

ToString()

ToString

Returns

Update(characterHealth, targetLimb, deltaTime)

Update

Parameters

  • characterHealth CharacterHealth

  • targetLimb Limb

  • deltaTime number

Fields

AppliedAsFailedTreatmentTime

AppliedAsFailedTreatmentTime, field of type number

  • AppliedAsFailedTreatmentTime

AppliedAsSuccessfulTreatmentTime

AppliedAsSuccessfulTreatmentTime, field of type number

  • AppliedAsSuccessfulTreatmentTime

DamagePerSecond

DamagePerSecond, field of type number

  • DamagePerSecond

DamagePerSecondTimer

DamagePerSecondTimer, field of type number

  • DamagePerSecondTimer

DivideByLimbCount

DivideByLimbCount, field of type bool

  • DivideByLimbCount

Duration

Duration, field of type number

  • Duration

GrainEffectStrength

GrainEffectStrength, field of type number

  • GrainEffectStrength

Identifier

Identifier, field of type Identifier

  • Identifier

MultiplyByMaxVitality

MultiplyByMaxVitality, field of type bool

  • MultiplyByMaxVitality

Name

Name, field of type string

  • Name

NonClampedStrength

NonClampedStrength, field of type number

  • NonClampedStrength

PendingGrainEffectStrength

PendingGrainEffectStrength, field of type number

  • PendingGrainEffectStrength

PeriodicEffectTimers

PeriodicEffectTimers, field of type table

  • PeriodicEffectTimers

Prefab

Prefab, field of type AfflictionPrefab

  • Prefab

PreviousVitalityDecrease

PreviousVitalityDecrease, field of type number

  • PreviousVitalityDecrease

Probability

Probability, field of type number

  • Probability

SerializableProperties

SerializableProperties, field of type table

  • SerializableProperties

Source

Source, field of type Character

  • Source

Strength

Strength, field of type number

  • Strength

StrengthDiminishMultiplier

StrengthDiminishMultiplier, field of type ValueTuple

  • StrengthDiminishMultiplier