Example #1
0
        public int GetTotalEffectValue(TraitEffectType type)
        {
            int retVal = 0;

            foreach (TraitEffect effect in traitEffects)
            {
                if (effect.type == type)
                {
                    retVal += effect.value;
                }
            }
            return(retVal);
        }
 public int GetTotalEffectValue(TraitEffectType type)
 {
     return(trait.GetTotalEffectValue(type));
 }