|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Determines if this player has enough mana to use an item.
If the player doesn't have enough mana and blockQuickMana is false, the player will activate any missing mana effects they have and try again.
The pay parameter can be used to consume the mana amount.
| item | The item to use. |
| amount | The amount of mana needed. If -1, calculate using M:Terraria.Player.GetManaCost(Terraria.Item). |
| pay | If true, actually use the mana requested. |
| blockQuickMana | If true, prevent on missing mana effects like the Mana Flower from activating if the player doesn't have enough mana. |
true if the player has enough mana to use the item, false otherwise.Definition at line 58647 of file Player.cs.
References Terraria.Player.GetManaCost(), Terraria.Player.manaFlower, Terraria.ModLoader.CombinedHooks.OnConsumeMana(), Terraria.ModLoader.CombinedHooks.OnMissingMana(), Terraria.Player.QuickMana(), and Terraria.Player.statMana.
Here is the call graph for this function: