TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ ManaEffect()

void Terraria.Player.ManaEffect ( int manaAmount)
inline

Definition at line 4991 of file Player.cs.

4992 {
4993 //IL_0024: Unknown result type (might be due to invalid IL or missing references)
4994 //IL_0029: Unknown result type (might be due to invalid IL or missing references)
4995 CombatText.NewText(new Rectangle((int)position.X, (int)position.Y, width, height), CombatText.HealMana, manaAmount);
4996 if (Main.netMode == 1 && whoAmI == Main.myPlayer)
4997 {
4998 NetMessage.SendData(43, -1, -1, null, whoAmI, manaAmount);
4999 }
5000 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51

References Terraria.CombatText.HealMana, Terraria.Entity.height, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.CombatText.NewText(), Terraria.Entity.position, Terraria.NetMessage.SendData(), Terraria.Entity.whoAmI, and Terraria.Entity.width.

Referenced by Terraria.Player.ApplyLifeAndOrMana(), Terraria.Player.OnHurt_Part2(), Terraria.Player.PickupItem(), and Terraria.Player.UseManaMaxIncreasingItem().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: