public IPermanentStat Build(PermanentStatType type, int level) { return(new PermanentStat( Formula, type, BaseValues[type], level, IndividualValues[type], EffortValues[type])); }
public IPermanentStat Stat(PermanentStatType ofType) { return(ofType switch { PermanentStatType.Health => Health, PermanentStatType.Attack => Attack, PermanentStatType.Defense => Defense, PermanentStatType.Special => Special, PermanentStatType.Speed => Speed, _ => throw new ArgumentOutOfRangeException(nameof(ofType), ofType, null) });
public PermanentStat( IStatFormula formula, PermanentStatType statType, int baseValue, int level, int individualValue, int effortValue) { Formula = formula; StatType = statType; BaseValue = baseValue; Level = level; IndividualValue = individualValue; EffortValue = effortValue; ModifiedValue = baseValue; Modifiers = new List <decimal>(); }
public MoveCategory(string name, PermanentStatType attackStat, PermanentStatType defenseStat) { Name = name; AttackStatType = attackStat; DefenseStatType = defenseStat; }