Exemplo n.º 1
0
        private void AlterResists(Item newItem, Item oldItem)
        {
            if (newItem is BaseArmor || newItem is BaseClothing)
            {
                int[] newResists = Imbuing.GetBaseResists(newItem);
                int[] oldResists = Imbuing.GetBaseResists(oldItem);

                for (int i = 0; i < newResists.Length; i++)
                {
                    if (oldResists[i] > newResists[i])
                    {
                        Imbuing.SetProperty(newItem, 51 + i, oldResists[i] - newResists[i]);
                    }
                }
            }
        }