public void ApplyToCharacter(Character chr) { Stat stat = chr.GetStat(statName); if (stat != null) { stat.AddMod(this); Apply(); Debug.Log("statmod applied"); } }
public void SetMods() { foreach (Armor armor in equipment.armors) { foreach (Mod mod in armor.mods) { switch (mod.stat) { case "str": str.AddMod(mod); break; case "dex": dex.AddMod(mod); break; case "wis": wis.AddMod(mod); break; } } } }