ACR_Items.GenerateRod.convertToRodPrice C# (CSharp) Метод

convertToRodPrice() приватный статический Метод

private static convertToRodPrice ( int>.Dictionary from, int>.Dictionary to ) : void
from int>.Dictionary
to int>.Dictionary
Результат void
        private static void convertToRodPrice(Dictionary<int, int> from, Dictionary<int, int> to)
        {
            foreach (KeyValuePair<int, int> key in from)
            {
                int value = 36 * ALFA.Shared.Modules.InfoStore.IPCastSpells[key.Key].CasterLevel * ALFA.Shared.Modules.InfoStore.IPCastSpells[key.Key].InnateLevel;
                if (value == 0) // innate level is 0
                {
                    value = 36 * ALFA.Shared.Modules.InfoStore.IPCastSpells[key.Key].CasterLevel / 2;
                }
                to.Add(key.Key, value);
            }
        }
        #endregion