Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
◆
GetShimmerColor()
Color
Terraria.NPC.GetShimmerColor
(
Color
newColor
)
inline
Definition at line
90353
of file
NPC.cs
.
90354
{
90355
if
(
shimmerTransparency
> 0f && !
CanApplyHunterPotionEffects
())
90356
{
90357
newColor.R = (byte)((
float
)(int)
newColor
.R * (1f -
shimmerTransparency
));
90358
newColor.G = (byte)((
float
)(int)
newColor
.G * (1f -
shimmerTransparency
));
90359
newColor.B = (byte)((
float
)(int)
newColor
.B * (1f -
shimmerTransparency
));
90360
newColor.A = (byte)((
float
)(int)
newColor
.A * (1f -
shimmerTransparency
));
90361
}
90362
return
newColor
;
90363
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
Terraria.NPC.CanApplyHunterPotionEffects
bool CanApplyHunterPotionEffects()
Definition
NPC.cs:87774
Terraria.NPC.shimmerTransparency
float shimmerTransparency
Definition
NPC.cs:207
Terraria
NPC
Generated by
1.10.0