public Stat GetStat(StatType type) { var stat = _character.Stats.FirstOrDefault(potentialStat => potentialStat.Type == type); if (stat == null) { stat = new Stat(0, StatType.ProjectileParryChance); } return(StatUtils.ApplyBuffs(stat, Buffs.Concat(_temporaryBuffs))); }
public Attribute GetAttribute(Attribute.AttributeType type) { var baseAttr = _character.Attributes.First(attr => attr.Type == type); return(AttributeUtils.ApplyBuffs(baseAttr, Buffs.Concat(_temporaryBuffs))); }