Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ UpdateNPC_BuffSetFlags()

void Terraria.NPC.UpdateNPC_BuffSetFlags ( bool lowerBuffTime = true)
inline

Definition at line 88727 of file NPC.cs.

88728 {
88729 for (int i = 0; i < maxBuffs; i++)
88730 {
88731 if (buffType[i] <= 0 || buffTime[i] <= 0)
88732 {
88733 continue;
88734 }
88735 if (lowerBuffTime)
88736 {
88737 buffTime[i]--;
88738 }
88739 if (buffType[i] == 20)
88740 {
88741 poisoned = true;
88742 }
88743 if (buffType[i] == 70)
88744 {
88745 venom = true;
88746 }
88747 if (buffType[i] == 24)
88748 {
88749 onFire = true;
88750 }
88751 if (buffType[i] == 72)
88752 {
88753 midas = true;
88754 }
88755 if (buffType[i] == 69)
88756 {
88757 ichor = true;
88758 }
88759 if (buffType[i] == 31)
88760 {
88761 confused = true;
88762 }
88763 if (buffType[i] == 39)
88764 {
88765 onFire2 = true;
88766 }
88767 if (buffType[i] == 44)
88768 {
88769 onFrostBurn = true;
88770 }
88771 if (buffType[i] == 103)
88772 {
88773 dripping = true;
88774 }
88775 if (buffType[i] == 137)
88776 {
88777 drippingSlime = true;
88778 }
88779 if (buffType[i] == 320)
88780 {
88781 drippingSparkleSlime = true;
88782 }
88783 if (buffType[i] == 119)
88784 {
88785 loveStruck = true;
88786 }
88787 if (buffType[i] == 120)
88788 {
88789 stinky = true;
88790 }
88791 if (buffType[i] == 151)
88792 {
88793 soulDrain = true;
88794 }
88795 if (buffType[i] == 153)
88796 {
88797 shadowFlame = true;
88798 }
88799 if (buffType[i] == 165)
88800 {
88801 dryadWard = true;
88802 }
88803 if (buffType[i] == 169)
88804 {
88805 javelined = true;
88806 }
88807 if (buffType[i] == 337)
88808 {
88809 tentacleSpiked = true;
88810 }
88811 if (buffType[i] == 344)
88812 {
88813 bloodButchered = true;
88814 }
88815 if (buffType[i] == 183)
88816 {
88817 celled = true;
88818 }
88819 if (buffType[i] == 186)
88820 {
88821 dryadBane = true;
88822 }
88823 if (buffType[i] == 189)
88824 {
88825 daybreak = true;
88826 }
88827 if (buffType[i] == 203)
88828 {
88829 betsysCurse = true;
88830 }
88831 if (buffType[i] == 204)
88832 {
88833 oiled = true;
88834 }
88835 if (buffType[i] == 310)
88836 {
88837 markedByScytheWhip = true;
88838 }
88839 if (buffType[i] == 323)
88840 {
88841 onFire3 = true;
88842 }
88843 if (buffType[i] == 324)
88844 {
88845 onFrostBurn2 = true;
88846 }
88847 if (buffType[i] == 353)
88848 {
88849 if (buffImmune[353])
88850 {
88851 DelBuff(i);
88852 }
88853 else
88854 {
88855 shimmering = true;
88856 }
88857 }
88858 }
88859 }
bool drippingSparkleSlime
Definition NPC.cs:93
bool dryadBane
Definition NPC.cs:275
bool confused
Definition NPC.cs:253
bool onFire2
Definition NPC.cs:227
bool venom
Definition NPC.cs:239
bool stinky
Definition NPC.cs:257
bool soulDrain
Definition NPC.cs:243
bool poisoned
Definition NPC.cs:235
static readonly int maxBuffs
Definition NPC.cs:211
bool dryadWard
Definition NPC.cs:259
bool markedByScytheWhip
Definition NPC.cs:237
bool ichor
Definition NPC.cs:223
bool oiled
Definition NPC.cs:283
int[] buffTime
Definition NPC.cs:215
bool midas
Definition NPC.cs:221
bool onFire
Definition NPC.cs:225
bool betsysCurse
Definition NPC.cs:281
bool bloodButchered
Definition NPC.cs:271
void DelBuff(int buffIndex)
Definition NPC.cs:86824
bool shimmering
Definition NPC.cs:245
bool[] buffImmune
Definition NPC.cs:217
bool tentacleSpiked
Definition NPC.cs:269
bool dripping
Definition NPC.cs:89
bool drippingSlime
Definition NPC.cs:91
bool celled
Definition NPC.cs:273
bool javelined
Definition NPC.cs:267
bool shadowFlame
Definition NPC.cs:241
bool onFrostBurn2
Definition NPC.cs:233
bool daybreak
Definition NPC.cs:277
bool loveStruck
Definition NPC.cs:255
int[] buffType
Definition NPC.cs:213
bool onFire3
Definition NPC.cs:229
bool onFrostBurn
Definition NPC.cs:231