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

◆ BrainOfConfusionDodge()

void Terraria.Player.BrainOfConfusionDodge ( )
inline

Definition at line 36851 of file Player.cs.

36852 {
36855 if (whoAmI == Main.myPlayer)
36856 {
36857 AddBuff(321, 240, quiet: false);
36858 NetMessage.SendData(62, -1, -1, null, whoAmI, 4f);
36859 }
36860 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
int brainOfConfusionDodgeAnimationCounter
Definition Player.cs:1380
void SetImmuneTimeForAllTypes(int time)
Definition Player.cs:36818
void AddBuff(int type, int timeToAdd, bool quiet=true, bool foodHack=false)
Gives the player the provided buff. This accounts for if the player is immune to the buff....
Definition Player.cs:5700

References Terraria.Player.AddBuff(), Terraria.Player.brainOfConfusionDodgeAnimationCounter, Terraria.Player.longInvince, Terraria.Main.myPlayer, Terraria.NetMessage.SendData(), Terraria.Player.SetImmuneTimeForAllTypes(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.Hurt().

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