GlobalStats.AddEffectResistance
Declaration#
public virtual bool AddEffectResistance(string resistanceId, IUniquelyIdentifiable source)Parameters#
| Name | Description |
|---|---|
| resistanceId | Id of the Status Effect Resistance to add |
| source | Object adding this Effect Resistance |
Description#
Adds a Status Effect Resistance to the object by id.
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(GlobalStats target, string id) { target.AddEffectResistance(id, null); }}Declaration#
public virtual bool AddEffectResistance(GDTKEffectResistance resistance, IUniquelyIdentifiable source)Parameters#
| Name | Description |
|---|---|
| resistance | Status Effect Resistance to Add |
| source | Object adding this Effect Resistance |
Description#
Adds a Status Effect Resistance to the object.
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{ public void ExampleMethod(GlobalStats target, GDTKEffectResistance other) { target.AddEffectResistance(other, null); }}