Terraria
v1.4.4.9
Terraria source code documentation
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Properties
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Events
_
a
c
d
e
f
i
l
m
o
p
r
s
t
u
w
Files
File List
File Members
All
Enumerations
Macros
►
Terraria
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Properties
Events
Macros
Loading...
Searching...
No Matches
◆
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
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.NPC.drippingSparkleSlime
bool drippingSparkleSlime
Definition
NPC.cs:93
Terraria.NPC.dryadBane
bool dryadBane
Definition
NPC.cs:275
Terraria.NPC.confused
bool confused
Definition
NPC.cs:253
Terraria.NPC.onFire2
bool onFire2
Definition
NPC.cs:227
Terraria.NPC.venom
bool venom
Definition
NPC.cs:239
Terraria.NPC.stinky
bool stinky
Definition
NPC.cs:257
Terraria.NPC.soulDrain
bool soulDrain
Definition
NPC.cs:243
Terraria.NPC.poisoned
bool poisoned
Definition
NPC.cs:235
Terraria.NPC.maxBuffs
static readonly int maxBuffs
Definition
NPC.cs:211
Terraria.NPC.dryadWard
bool dryadWard
Definition
NPC.cs:259
Terraria.NPC.markedByScytheWhip
bool markedByScytheWhip
Definition
NPC.cs:237
Terraria.NPC.ichor
bool ichor
Definition
NPC.cs:223
Terraria.NPC.oiled
bool oiled
Definition
NPC.cs:283
Terraria.NPC.buffTime
int[] buffTime
Definition
NPC.cs:215
Terraria.NPC.midas
bool midas
Definition
NPC.cs:221
Terraria.NPC.onFire
bool onFire
Definition
NPC.cs:225
Terraria.NPC.betsysCurse
bool betsysCurse
Definition
NPC.cs:281
Terraria.NPC.bloodButchered
bool bloodButchered
Definition
NPC.cs:271
Terraria.NPC.DelBuff
void DelBuff(int buffIndex)
Definition
NPC.cs:86824
Terraria.NPC.shimmering
bool shimmering
Definition
NPC.cs:245
Terraria.NPC.buffImmune
bool[] buffImmune
Definition
NPC.cs:217
Terraria.NPC.tentacleSpiked
bool tentacleSpiked
Definition
NPC.cs:269
Terraria.NPC.dripping
bool dripping
Definition
NPC.cs:89
Terraria.NPC.drippingSlime
bool drippingSlime
Definition
NPC.cs:91
Terraria.NPC.celled
bool celled
Definition
NPC.cs:273
Terraria.NPC.javelined
bool javelined
Definition
NPC.cs:267
Terraria.NPC.shadowFlame
bool shadowFlame
Definition
NPC.cs:241
Terraria.NPC.onFrostBurn2
bool onFrostBurn2
Definition
NPC.cs:233
Terraria.NPC.daybreak
bool daybreak
Definition
NPC.cs:277
Terraria.NPC.loveStruck
bool loveStruck
Definition
NPC.cs:255
Terraria.NPC.buffType
int[] buffType
Definition
NPC.cs:213
Terraria.NPC.onFire3
bool onFire3
Definition
NPC.cs:229
Terraria.NPC.onFrostBurn
bool onFrostBurn
Definition
NPC.cs:231
System.Text.RegularExpressions.ExceptionArgument.i
@ i
Terraria
NPC
Generated by
1.10.0