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

◆ AddBuff_RemoveOldMeleeBuffsOfMatchingType()

void Terraria.Player.AddBuff_RemoveOldMeleeBuffsOfMatchingType ( int type)
inlineprivate

Definition at line 5771 of file Player.cs.

5772 {
5773 if (!Main.meleeBuff[type])
5774 {
5775 return;
5776 }
5777 for (int i = 0; i < maxBuffs; i++)
5778 {
5779 if (buffType[i] != type && Main.meleeBuff[buffType[i]])
5780 {
5781 DelBuff(i);
5782 i--;
5783 }
5784 }
5785 }
int[] buffType
The T:Terraria.ID.BuffIDs of all buffs this player has active. A value of 0 means that buff slot is...
Definition Player.cs:1684
static int maxBuffs
Definition Player.cs:3380
void DelBuff(int b)
Removes the buff at the provided index in F:Terraria.Player.buffType and F:Terraria....
Definition Player.cs:5868

References Terraria.Player.buffType, Terraria.Player.DelBuff(), Terraria.Player.maxBuffs, and Terraria.Main.meleeBuff.

Referenced by Terraria.Player.AddBuff().

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