45 {
47 switch (context)
48 {
53 {
54 if (
drawinfo.armGlowColor.PackedValue == 0)
55 {
56 break;
57 }
58 DrawData
item2 = data;
61 value2.Y += 224;
64 {
66 for (
int j = 0;
j < 2;
j++)
67 {
68 Vector2 vector2 =
new Vector2((
float)Main.rand.Next(-10, 10) * 0.125f, (
float)Main.rand.Next(-10, 10) * 0.125f);
71 {
73 }
74 }
75 }
77 break;
78 }
80 {
81 if (
drawinfo.bodyGlowColor.PackedValue == 0)
82 {
83 break;
84 }
88 value.Y += 224;
89 item.sourceRect =
value;
91 {
93 for (
int i = 0;
i < 2;
i++)
94 {
95 Vector2 vector =
new Vector2((
float)Main.rand.Next(-10, 10) * 0.125f, (
float)Main.rand.Next(-10, 10) * 0.125f);
96 item.position = position +
vector;
97 if (i == 0)
98 {
100 }
101 }
102 }
104 break;
105 }
106 }
108 {
109 Vector2 position3 = drawinfo.helmetOffset +
new Vector2((
int)(
drawinfo.Position.X - Main.screenPosition.X - (
float)(
drawinfo.drawPlayer.bodyFrame.Width / 2) + (
float)(
drawinfo.drawPlayer.width / 2)), (
int)(
drawinfo.Position.Y - Main.screenPosition.Y + (
float)
drawinfo.drawPlayer.height - (
float)
drawinfo.drawPlayer.bodyFrame.Height + 4f)) + drawinfo.drawPlayer.headPosition +
drawinfo.headVect;
116 }
118 {
120 ulong
seed = (ulong)(
drawinfo.drawPlayer.miscCounter / 4);
121 int num = 4;
122 for (
int k = 0;
k < num;
k++)
123 {
124 float num2 = (float)Utils.RandomInt(
ref seed, -10, 11) * 0.2f;
125 float num3 = (float)Utils.RandomInt(
ref seed, -10, 1) * 0.15f;
126 DrawData
item4 = data;
128 value3.Y += 224;
129 item4.sourceRect =
value3;
130 item4.position.X +=
num2;
131 item4.position.Y +=
num3;
132 item4.color = color;
134 }
135 }
136 }
void Add(TKey key, TValue value)
static Asset< Texture2D >[] GlowMask
static Asset< Texture2D >[] Extra
CompositePlayerDrawContext