Aura.Channel.World.Entities.Creature.GetAdjustedManaCost C# (CSharp) Метод

GetAdjustedManaCost() публичный Метод

Returns given Mana cost adjusted for this creature, factoring in bonuses and modifications.
public GetAdjustedManaCost ( float baseVal ) : float
baseVal float
Результат float
		public float GetAdjustedManaCost(float baseVal)
		{
			var cost = baseVal;
			var mod = this.Inventory.GetManaUseModificator();

			// Positive values mean you use less Mana.
			if (mod != 0)
				cost *= (100 - mod) / 100f;

			return cost;
		}