public int GetStat(CharacterCard.Stats stat) { //return the currect value of a stat, with buffs return(card.Stat[stat] + buffs[stat]); }
//stat buff effects private static void StatBuff(Vector2 space, CharacterCard.Stats stat, int val) { //a templated effect, to be called by other effects //give target unit a stat buff GameController.Game.GetAtPos <Character>(space).ApplyBuff(stat, val); }
public void ApplyBuff(CharacterCard.Stats stat, int i) { //add a value to a stat buffs[stat] += i; }