TModLoader
v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
◆
GetShimmerColor()
Color Terraria.NPC.GetShimmerColor
(
Color
newColor
)
inline
Definition at line
110973
of file
NPC.cs
.
110974
{
110975
//IL_0089: Unknown result type (might be due to invalid IL or missing references)
110976
if
(
shimmerTransparency
> 0
f
&& !
CanApplyHunterPotionEffects
())
110977
{
110978
((Color)(
ref
newColor
)).R = (
byte
)((float)(
int
)((Color)(
ref
newColor
)).R * (1
f
-
shimmerTransparency
));
110979
((Color)(
ref
newColor
)).G = (
byte
)((float)(
int
)((Color)(
ref
newColor
)).G * (1
f
-
shimmerTransparency
));
110980
((Color)(
ref
newColor
)).B = (
byte
)((float)(
int
)((Color)(
ref
newColor
)).B * (1
f
-
shimmerTransparency
));
110981
((Color)(
ref
newColor
)).A = (
byte
)((float)(
int
)((Color)(
ref
newColor
)).A * (1
f
-
shimmerTransparency
));
110982
}
110983
return
newColor
;
110984
}
List
Terraria.NPC.CanApplyHunterPotionEffects
bool CanApplyHunterPotionEffects()
Definition
NPC.cs:107881
Terraria.NPC.shimmerTransparency
float shimmerTransparency
Definition
NPC.cs:643
Terraria
NPC
Generated by
1.10.0