ABM_creator.Consumable.cost C# (CSharp) Method

cost() protected method

protected cost ( int spellLevel, int casterLevel ) : int
spellLevel int
casterLevel int
return int
        protected virtual int cost(int spellLevel, int casterLevel)
        {
            if (spellLevel == 0)
                return (casterLevel * baseCost) / 2;
            return spellLevel * casterLevel * baseCost;
        }