Class StatsModificator
Class used by elements like IAttackEffect, GameItem or Trait to modify character statistics.
Namespace: AutoBattleFramework.Stats
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class StatsModificator
Fields
attackEffects
List of AttackEffects to be attached.
Declaration
public List<IAttackEffect> attackEffects
Field Value
| Type | Description |
|---|---|
| List<IAttackEffect> |
onHitEffects
List of on hits effects to be applied when the character attacks and hits another charater.
Declaration
public List<OnHitEffect> onHitEffects
Field Value
| Type | Description |
|---|---|
| List<OnHitEffect> |
sprite
Sprite of the modificator.
Declaration
public Sprite sprite
Field Value
| Type | Description |
|---|---|
| Sprite |
statsModificator
List of stats modificators to be applied.
Declaration
public List<StatModificator> statsModificator
Field Value
| Type | Description |
|---|---|
| List<StatModificator> |
Methods
AddStats(GameCharacter, Boolean)
Add the modificator to the character stats. Setting Add to false results in the removal of the stats modification.
Declaration
public void AddStats(GameCharacter character, bool Add)
Parameters
| Type | Name | Description |
|---|---|---|
| GameCharacter | character | Character whose statistics are to be modified. |
| Boolean | Add | Set it to true if you want to add statistics. Set to false if you want to subtract them. |