Definition at line 58097 of file Player.cs.
58098 {
58099 if (
whoAmI != Main.myPlayer)
58100 {
58101 return;
58102 }
58104 for (
int i = 0; i <
maxBuffs; i++)
58105 {
58107 {
58109 }
58110 }
58111 switch (type)
58112 {
58113 case 173:
58116 break;
58117 case 176:
58120 break;
58121 case 179:
58124 break;
58125 }
58126 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
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....
References Terraria.Player.AddBuff(), Terraria.Player.buffType, Terraria.Player.DelBuff(), Terraria.Player.maxBuffs, Terraria.Main.myPlayer, Terraria.Player.nebulaLevelDamage, Terraria.Player.nebulaLevelLife, Terraria.Player.nebulaLevelMana, and Terraria.Entity.whoAmI.
Referenced by Terraria.Player.PickupItem().