TModLoader
v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
◆
GetDeathAlpha()
Color Terraria.Player.GetDeathAlpha
(
Color
newColor
)
inline
Definition at line
54809
of file
Player.cs
.
54810
{
54811
//IL_0082: Unknown result type (might be due to invalid IL or missing references)
54812
int
num2
= ((Color)(
ref
newColor
)).R + (
int
)((double)
immuneAlpha
* 0.9);
54813
int
g
= ((Color)(
ref
newColor
)).G + (
int
)((double)
immuneAlpha
* 0.5);
54814
int
b
= ((Color)(
ref
newColor
)).B + (
int
)((double)
immuneAlpha
* 0.5);
54815
int
num
= ((Color)(
ref
newColor
)).A + (
int
)((double)
immuneAlpha
* 0.4);
54816
if
(
num
< 0)
54817
{
54818
num
= 0;
54819
}
54820
if
(
num
> 255)
54821
{
54822
num
= 255;
54823
}
54824
return
new
Color(
num2
,
g
,
b
,
num
);
54825
}
List
Terraria.Player.immuneAlpha
int immuneAlpha
Definition
Player.cs:1590
References
Terraria.Player.immuneAlpha
.
Terraria
Player
Generated by
1.10.0