ABM_creator.Consumable.cost C# (CSharp) Метод

cost() защищенный Метод

protected cost ( int spellLevel, int casterLevel ) : int
spellLevel int
casterLevel int
Результат int
        protected virtual int cost(int spellLevel, int casterLevel)
        {
            if (spellLevel == 0)
                return (casterLevel * baseCost) / 2;
            return spellLevel * casterLevel * baseCost;
        }