Esempio n. 1
0
    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;
    }
Esempio n. 2
0
    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;
    }
Esempio n. 3
0
 //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);
 }
Esempio n. 4
0
 public ActorValue getStat(Actor_StatsEnum stat)
 {
     return(actorValues.Find(x => x._stattype_original == stat));
 }