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

◆ GetImmuneAlphaPure()

Color Terraria.Player.GetImmuneAlphaPure ( Color newColor,
float alphaReduction )
inline

Definition at line 54793 of file Player.cs.

54794 {
54795 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
54796 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
54797 float num = (float)(255 - immuneAlpha) / 255f;
54798 if (alphaReduction > 0f)
54799 {
54800 num *= 1f - alphaReduction;
54801 }
54802 if (shimmerTransparency > 0f)
54803 {
54805 }
54806 return Color.Multiply(newColor, num);
54807 }
float shimmerTransparency
Definition Player.cs:2493

References Terraria.Player.immuneAlpha, and Terraria.Player.shimmerTransparency.

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_2().

+ Here is the caller graph for this function: