Example #1
0
 public int GetStat(CharacterCard.Stats stat)
 {
     //return the currect value of a stat, with buffs
     return(card.Stat[stat] + buffs[stat]);
 }
Example #2
0
 //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);
 }
Example #3
0
 public void ApplyBuff(CharacterCard.Stats stat, int i)
 {
     //add a value to a stat
     buffs[stat] += i;
 }