Class DrainEffect
Drain effect base.
Provides functionality common to all Drain effects which vary only by properties and stat.
This effect uses an incumbent pattern where future applications of same effect type
will only add to total magnitude of first effect of this type.
Incumbent drain effect persists indefinitely until player heals stat enough for magnitude to reach 0.
Assembly: Assembly-CSharp.dll
Syntax
public abstract class DrainEffect : IncumbentEffect, IEntityEffect, IMacroContextProvider
Fields
|
Improve this Doc
View Source
drainStat
Declaration
protected DFCareer.Stats drainStat
Field Value
|
Improve this Doc
View Source
lastMagnitudeIncreaseAmount
Declaration
protected int lastMagnitudeIncreaseAmount
Field Value
|
Improve this Doc
View Source
magnitude
Declaration
Field Value
Properties
|
Improve this Doc
View Source
DrainStat
Declaration
public DFCareer.Stats DrainStat { get; }
Property Value
|
Improve this Doc
View Source
Magnitude
Declaration
public int Magnitude { get; }
Property Value
|
Improve this Doc
View Source
RoundsRemaining
Declaration
public override int RoundsRemaining { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
AddState(IncumbentEffect)
Declaration
protected override void AddState(IncumbentEffect incumbent)
Parameters
Overrides
|
Improve this Doc
View Source
BecomeIncumbent()
Declaration
protected override void BecomeIncumbent()
Overrides
|
Improve this Doc
View Source
DecreaseMagnitude(Int32)
Declaration
public int DecreaseMagnitude(int amount)
Parameters
Type |
Name |
Description |
Int32 |
amount |
|
Returns
|
Improve this Doc
View Source
GetSaveData()
Declaration
public override object GetSaveData()
Returns
Overrides
|
Improve this Doc
View Source
HealAttributeDamage(DFCareer.Stats, Int32)
Declaration
public override void HealAttributeDamage(DFCareer.Stats stat, int amount)
Parameters
Overrides
|
Improve this Doc
View Source
IncreaseMagnitude(Int32)
Declaration
public void IncreaseMagnitude(int amount)
Parameters
Type |
Name |
Description |
Int32 |
amount |
|
|
Improve this Doc
View Source
IsLikeKind(IncumbentEffect)
Declaration
protected override bool IsLikeKind(IncumbentEffect other)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
RemoveRound()
Declaration
protected override int RemoveRound()
Returns
Overrides
|
Improve this Doc
View Source
RestoreSaveData(Object)
Declaration
public override void RestoreSaveData(object dataIn)
Parameters
Type |
Name |
Description |
Object |
dataIn |
|
Overrides
|
Improve this Doc
View Source
Start(EntityEffectManager, DaggerfallEntityBehaviour)
Declaration
public override void Start(EntityEffectManager manager, DaggerfallEntityBehaviour caster = null)
Parameters
Overrides
Implements