Class StatModificator
Describes a modification to a stat of a character.
Namespace: AutoBattleFramework.Stats
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class StatModificator
Fields
modificatorType
Whether the change is fixed or percentage.
Declaration
public StatsModificator.ModificatorType modificatorType
Field Value
Type | Description |
---|---|
StatsModificator.ModificatorType |
stat
Stat to modify
Declaration
public CharacterStats.CharacterStat stat
Field Value
Type | Description |
---|---|
CharacterStats.CharacterStat |
value
Amount of the modification.
Declaration
public float value
Field Value
Type | Description |
---|---|
Single |
Methods
GetModificatorStatString(CharacterStats.CharacterStat)
Returns a string that describes the state
Declaration
public string GetModificatorStatString(CharacterStats.CharacterStat stat)
Parameters
Type | Name | Description |
---|---|---|
CharacterStats.CharacterStat | stat | Stat to be described. |
Returns
Type | Description |
---|---|
String | The amount of modification as string. |