Пример #1
0
        public static void SwapItems(int a, int b)
        {
            Item backup = Inventory.Instance.ItemSlots[a];

            Inventory.Instance.ItemSlots[a] = Inventory.Instance.ItemSlots[b];
            Inventory.Instance.ItemSlots[b] = backup;
            CustomCrafting.UpdateIndex(a, b);
            CustomCrafting.UpdateIndex(b, a);
        }
Пример #2
0
 public static void Init()
 {
     instance           = new CustomCrafting();
     instance.rerolling = new Rerolling(instance);
     instance.reforging = new Reforging(instance);
 }
Пример #3
0
 public Reforging(CustomCrafting cc)
 {
     this.cc = cc;
 }
Пример #4
0
 public Rerolling(CustomCrafting cc)
 {
     this.cc = cc;
 }