ACR_Items.GenerateStaff.convertToStaffPrice C# (CSharp) Метод

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

private static convertToStaffPrice ( int>.Dictionary dict ) : int>.Dictionary
dict int>.Dictionary
Результат int>.Dictionary
        private static Dictionary<int, int> convertToStaffPrice(Dictionary<int, int> dict)
        {
            Dictionary<int, int> newDict = new Dictionary<int, int>();
            foreach (int ip in dict.Keys)
            {
                int value = 15 * ALFA.Shared.Modules.InfoStore.IPCastSpells[ip].CasterLevel * ALFA.Shared.Modules.InfoStore.IPCastSpells[ip].InnateLevel;
                if(value == 0) // innate level is 0
                {
                    value = 15 * ALFA.Shared.Modules.InfoStore.IPCastSpells[ip].CasterLevel / 2;
                }
                newDict.Add(ip, value);
            }
            return newDict;
        }
        #endregion