Loading...
Searching...
No Matches
AdventureCore.StatMultiplierInstruction Class Reference

Detailed Description

multiplies the stat of its character while it is active
for example a buff that increases attack by 50%

Inheritance diagram for AdventureCore.StatMultiplierInstruction:
AdventureCore.CharacterInstructionBase AdventureCore.IStatModifier

Public Member Functions

int Modify (AttributeStat stat, int value)
 applies the modification
 
override void Apply (CharacterBase character)
 
override void Reset (CharacterBase character)
 
- Public Member Functions inherited from AdventureCore.CharacterInstructionBase
void Reset (CharacterBase character)
 reset whatever the instruction is affecting to its original value or remove whatever influence the instruction has had from the character
 
void Apply (CharacterBase character)
 apply the instruction, whenever a new instruction is added all instructions are reset and applied again
 

Public Attributes

int Priority = 999
 
AttributeStatValue[] StatValues
 

Properties

int ModifierPriority [get]
 modifiers are applied in the order of their priority
this means higher priority modifiers are applied before lower ones
 
IEnumerable< AttributeStatModifierStats [get]
 which stats this modifier applies to
 
- Properties inherited from AdventureCore.CharacterInstructionBase
object Owner [get, set]
 
- Properties inherited from AdventureCore.IStatModifier

Member Function Documentation

◆ Modify()

int AdventureCore.StatMultiplierInstruction.Modify ( AttributeStat stat,
int value )
inline

applies the modification

Parameters
attributethe stat that will be modified
valuethe value before modification
Returns
the modified value

Implements AdventureCore.IStatModifier.

Property Documentation

◆ ModifierPriority

int AdventureCore.StatMultiplierInstruction.ModifierPriority
get

modifiers are applied in the order of their priority
this means higher priority modifiers are applied before lower ones

Implements AdventureCore.IStatModifier.

◆ ModifierStats

IEnumerable<AttributeStat> AdventureCore.StatMultiplierInstruction.ModifierStats
get

which stats this modifier applies to

Implements AdventureCore.IStatModifier.