public float _racebase; //the racial base value, set on breeding public ActorValue(Actor_StatsEnum type, float basevalue) { _stattype_original = type; _stattype_override = _stattype_original; _racebase = basevalue; _current = _racebase; _limit = _racebase; _max = _racebase; }
public int _addend; //the combined addend for all additive and subtractive effects public ActorValue_complex(Actor_StatsEnum type, int basevalue) : base(type, basevalue) { _addend = 0; _multiplier = 1.0f; }
//sets the current type and returns the previous //e.g. for something that swaps players HP and MP stats public Actor_StatsEnum changeStatType(Actor_StatsEnum newtype) { _stattype_override = newtype; return(_stattype_original); }
public ActorValue getStat(Actor_StatsEnum stat) { return(actorValues.Find(x => x._stattype_original == stat)); }