Definition at line 6010 of file Player.cs.
6011 {
6012
6014 {
6015 return;
6016 }
6019 {
6021 if (item.potion)
6022 {
6024 }
6027 {
6028 item.stack--;
6029 }
6030 if (item.stack <= 0)
6031 {
6032 item.TurnToAir();
6033 }
6034 Recipe.FindRecipes();
6035 }
6036 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
Vector2 position
The position of this Entity in world coordinates.
static bool ConsumeItem(Item item, Player player)
If ModItem.ConsumeItem or any of the GlobalItem.ConsumeItem hooks returns false, sets consume to fals...
This serves as the central class from which item-related functions are carried out....
int statManaMax2
The maximum mana this player can have, adjusted by buffs and equipment.
void ApplyPotionDelay(Item sItem)
Item QuickMana_GetItemToUse()
void ApplyLifeAndOrMana(Item item)
bool ItemCheck_CheckCanUse(Item sItem)
int statMana
The current mana of this player. Capped at F:Terraria.Player.statManaMax2. If you increase this val...
bool CCed
Checks if the player is currently "crowd controlled", meaning the player is F:Terraria....
References Terraria.Player.ApplyLifeAndOrMana(), Terraria.Player.ApplyPotionDelay(), Terraria.Player.CCed, Terraria.Item.consumable, Terraria.ModLoader.ItemLoader.ConsumeItem(), Terraria.Player.cursed, Terraria.Player.dead, Terraria.Recipe.FindRecipes(), Terraria.Player.ItemCheck_CheckCanUse(), Terraria.Audio.SoundEngine.PlaySound(), Terraria.Entity.position, Terraria.Item.potion, Terraria.Player.QuickMana_GetItemToUse(), Terraria.Item.stack, Terraria.Player.statMana, Terraria.Player.statManaMax2, Terraria.Item.TurnToAir(), and Terraria.Item.UseSound.
Referenced by Terraria.Player.CheckMana(), Terraria.Player.CheckMana(), and Terraria.Player.Update().