Loading...
Searching...
No Matches
AdventureCore.IStatModifier Interface Reference

Detailed Description

interface for any class the modifies stats
it is applied when a stat value is retrieved from the AttributePool for example equipment that provides a stat bonus(defense from armor)

Inheritance diagram for AdventureCore.IStatModifier:
AdventureCore.EquipmentItem AdventureCore.StatEffect AdventureCore.StatMultiplierInstruction AdventureSouls.SoulsArmorItem

Public Member Functions

int Modify (AttributeStat stat, int value)
 applies the modification
 

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
 

Member Function Documentation

◆ Modify()

int AdventureCore.IStatModifier.Modify ( AttributeStat stat,
int value )

applies the modification

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

Implemented in AdventureCore.EquipmentItem, AdventureCore.StatEffect, AdventureCore.StatMultiplierInstruction, and AdventureSouls.SoulsArmorItem.

Property Documentation

◆ ModifierPriority

int AdventureCore.IStatModifier.ModifierPriority
get

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

Implemented in AdventureCore.StatEffect, AdventureCore.StatMultiplierInstruction, and AdventureSouls.SoulsArmorItem.

◆ ModifierStats

IEnumerable<AttributeStat> AdventureCore.IStatModifier.ModifierStats
get

which stats this modifier applies to

Implemented in AdventureCore.StatEffect, AdventureCore.StatMultiplierInstruction, and AdventureSouls.SoulsArmorItem.