Example #1
0
 public static float Normalize(Stat stat, float value)
 {
     return Normalize(stat.min, stat.max, value);
 }
Example #2
0
        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);
        }