Definition at line 37090 of file Player.cs.
37091 {
37092
37093
37096 {
37098 }
37100 {
37102 }
37104 if (Main.netMode == 1)
37105 {
37106 NetMessage.SendData(84, -1, -1,
null,
whoAmI);
37107 }
37108 if (
whoAmI == Main.myPlayer)
37109 {
37112 {
37113 for (int i = 0; i < 59; i++)
37114 {
37116 {
37119 if (i == 58)
37120 {
37121 Main.mouseItem = new Item();
37122 }
37123 }
37124 }
37125 }
37126 }
37128 {
37129 for (
int j = 0;
j < 1000;
j++)
37130 {
37131 if (Main.projectile[
j].active && Main.projectile[
j].owner ==
whoAmI && (Main.projectile[
j].type == 879 || Main.projectile[
j].type == 877 || Main.projectile[
j].type == 878))
37132 {
37133 Main.projectile[
j].active =
false;
37134 }
37135 }
37136 }
37138 {
37140 }
37142 {
37146 }
37148 {
37149 return;
37150 }
37152 {
37154 {
37156 }
37157 }
37158 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
void SetDefaults(int Type=0)
IEntitySource GetProjectileSource_Misc(int projectileSourceId)
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
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....
void DelBuff(int b)
Removes the buff at the provided index in F:Terraria.Player.buffType and F:Terraria....
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
References Terraria.Player.AddBuff(), Terraria.Player.buffType, Terraria.Player.channel, Terraria.Player.DelBuff(), Terraria.Player.GetProjectileSource_Misc(), Terraria.Player.hasFootball, Terraria.Player.inventory, Terraria.Player.invis, Terraria.Player.itemAnimation, Terraria.Player.itemAnimationMax, Terraria.Player.maxBuffs, Terraria.Main.myPlayer, Terraria.Main.netMode, Terraria.Projectile.NewProjectile(), Terraria.Main.NotifyOfEvent(), Terraria.Player.panic, Terraria.Main.projectile, Terraria.Player.selectedItem, Terraria.NetMessage.SendData(), Terraria.Item.SetDefaults(), Terraria.Player.setSquireT2, Terraria.Player.stealth, and Terraria.Entity.whoAmI.
Referenced by Terraria.Player.Hurt().