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

Detailed Description

multiplies the attributes of its character while it is active
for examplem a buff that increases strength by 10%

Inheritance diagram for AdventureCore.AttributeMultiplierInstruction:
AdventureCore.CharacterInstructionBase AdventureCore.IAttributeModifier

Public Member Functions

int Modify (AttributeType attribute, 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
 
AttributeValue[] AttributeValues
 

Properties

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

Member Function Documentation

◆ Modify()

int AdventureCore.AttributeMultiplierInstruction.Modify ( AttributeType attribute,
int value )
inline

applies the modification

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

Implements AdventureCore.IAttributeModifier.

Property Documentation

◆ ModifierAttributes

IEnumerable<AttributeType> AdventureCore.AttributeMultiplierInstruction.ModifierAttributes
get

which attributes this modifier applies to

Implements AdventureCore.IAttributeModifier.

◆ ModifierPriority

int AdventureCore.AttributeMultiplierInstruction.ModifierPriority
get

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

Implements AdventureCore.IAttributeModifier.