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

◆ UpdateNPC_BuffClearExpiredBuffs()

void Terraria.NPC.UpdateNPC_BuffClearExpiredBuffs ( )
inlineprivate

Definition at line 88654 of file NPC.cs.

88655 {
88656 if (Main.netMode == 1)
88657 {
88658 return;
88659 }
88660 for (int i = 0; i < maxBuffs; i++)
88661 {
88662 if (buffType[i] > 0 && buffTime[i] <= 0)
88663 {
88664 DelBuff(i);
88665 if (Main.netMode == 2)
88666 {
88667 NetMessage.SendData(54, -1, -1, null, whoAmI);
88668 }
88669 }
88670 }
88671 }
static readonly int maxBuffs
Definition NPC.cs:211
int[] buffTime
Definition NPC.cs:215
void DelBuff(int buffIndex)
Definition NPC.cs:86824
int[] buffType
Definition NPC.cs:213

References Terraria.Main.netMode, and Terraria.NetMessage.SendData().