public void RemoveTrackedMod(StatType type, StatModifier mod, GameObject cause, params StatModifierOption[] statOptions) { List <StatModifierOption> options = ConvertStatOptionsToList(statOptions); BaseStat targetStat = GetStat(type); if (targetStat == null) { Debug.Log("Stat: " + type + " not found"); return; } if (options.Contains(StatModifierOption.Cap)) { CappedStat capped = TryConvertToCappedStat(targetStat); if (capped != null) { capped.RemoveCapModifier(mod); OnStatChanged(type, cause); } } if ((options.Count < 1 || options.Contains(StatModifierOption.Base))) { targetStat.RemoveModifier(mod); OnStatChanged(type, cause); } }
public void RemoveTrackedMod(BaseStatType statType, StatModifer mod) { BaseStat targetStat = GetStat(statType); if (targetStat == null) { Debug.Log("Stat: " + statType + " not found"); return; } targetStat.RemoveModifier(mod); }
public void RemoveCapModifier(StatModifier mod) { maxValue.RemoveModifier(mod); }
public void RemoveModifier(string modName) { StatObject.RemoveModifier(modName); }
public void RemoveTrackedMod(Constants.BaseStatType statType, StatModifer mod) { BaseStat targetStat = GetStat(statType); targetStat.RemoveModifier(mod); }