Skip to main content

GlobalStats.AddEffectResistance

Declaration#

public virtual bool AddEffectResistance(string resistanceId, IUniquelyIdentifiable source)

Parameters#

NameDescription
resistanceIdId of the Status Effect Resistance to add
sourceObject 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#

NameDescription
resistanceStatus Effect Resistance to Add
sourceObject 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);    }}