public static float Normalize(Stat stat, float value) { return Normalize(stat.min, stat.max, value); }
private void Construct(string name, Type type, Stat[] range) { this.name = type.Namespace+"-"+name; this.type = type; this.range = new List<Stat>(); this.range.AddRange(range); //Add to global arrays this.id = ModGeneric.itemAffixes.Count; ModGeneric.itemAffixes.Add(this); }