![]() |
Eye of the Nile Docs
Everything you need to know to get started!
|
StatModifiers are a variable type that can be used by abilities to modify player stats (see PlayerStat, StatsAE, and PlayerStatHolder). This class does not inhert from monobehavior, so it does not have access to unity functions such as Start() or Update().
Documentation updated 9/1/2024
Public Member Functions | |
StatModifier (float modValue) | |
Constructor (function the automatically runs when a new StatModifier is created in another script). Initializes mod value to the given value. | |
Properties | |
string | TargetStat [get, set] |
Public version of _targetStat that can be used by scripts. | |
float | ModValue [get, set] |
Public version of _modValue that can be used by scripts. | |
Private Attributes | |
string | _targetStat |
Name of the stat that this modifier targets. Can be changed in the Unity Editor. | |
float | _modValue |
Amount that this stat modifier will change the target stat by. Can be changed in the Unity Editor. | |
StatModifier.StatModifier | ( | float | modValue | ) |
Constructor (function the automatically runs when a new StatModifier is created in another script). Initializes mod value to the given value.
|
private |
Amount that this stat modifier will change the target stat by. Can be changed in the Unity Editor.
|
private |
Name of the stat that this modifier targets. Can be changed in the Unity Editor.
|
getset |
Public version of _modValue that can be used by scripts.
|
getset |
Public version of _targetStat that can be used by scripts.