// Setup stat pairs for like hp/max hp and mana/max mana private void SetupStatPair(PlayerRawStat curStat, PlayerStatWithModifiers maxStat) { curStat.SetMinMax(0, maxStat.GetBaseValue()); //curStat.SetValue(maxStat.GetBaseValue()); maxStat.SetCallback((int maxValue) => curStat.SetMinMax(0, maxValue)); //maxStat.divisor = 3; }
public object Clone() { PlayerRawStat stat = new PlayerRawStat(this.stat, this.currentValue, minValue, maxValue); return(stat); }