コード例 #1
0
ファイル: Rand.cs プロジェクト: Surfpup/tConfig-Mods
 public static float Normalize(Stat stat, float value)
 {
     return Normalize(stat.min, stat.max, value);
 }
コード例 #2
0
ファイル: Affix.cs プロジェクト: Surfpup/tConfig-Mods
        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);
        }