27143 {
27144
27145
27146
27147
27148
27149
27150
27151
27152
27153
27154
27155
27156
27157
27158
27159
27160
27161
27162
27163
27164
27165
27166
27167
27168
27169
27170
27171
27172
27173
27174
27175
27176
27177
27178
27179
27180
27181
27182
27183
27184
27185
27186
27187
27188
27189
27190
27193 {
27195 }
27196 Vector2
vector =
default(Vector2);
27197 for (int i = 0; i < 2; i++)
27198 {
27199 int num2 = ((i == 0) ? 2 : (-2));
27200 Rectangle
r = ((i != 0) ?
new Rectangle((
int)position.X +
width - 4, (int)
position.Y +
num - 10, 8, 8) :
new Rectangle((
int)
position.X - 4, (
int)
position.Y +
num - 10, 8, 8));
27202 {
27203 r.X -= 4;
27204 }
27205 int type = 6;
27206 float scale = 2.5f;
27207 int alpha = 100;
27210 Dust dust;
27212 {
27213 case 5:
27214 type = 6;
27215 scale = 2.5f;
27216 break;
27217 case 1:
27219 {
27220 type = 27;
27221 scale = 1.5f;
27222 }
27223 break;
27224 case 3:
27225 type = 76;
27227 alpha = 20;
27228 break;
27229 case 2:
27231 {
27232 type = Main.rand.NextFromList(new short[6] { 61, 61, 61, 242, 64, 63 });
27234 alpha = 120;
27235 }
27236 else
27237 {
27238 type = 16;
27239 scale = 1.5f;
27240 alpha = 20;
27241 }
27242 break;
27243 case 4:
27244 {
27245 int num4 = Main.rand.Next(6);
27248 {
27249 dust = Dust.NewDustDirect(
r.TopLeft(),
r.Width,
r.Height, 278, 0
f, 0
f, 100, Color.Lerp(Color.LimeGreen, Color.White, Main.rand.NextFloat() * 0.3f));
27251 dust.scale = 0.66f;
27252 dust.noGravity = true;
27254 dust2.velocity *= 0.25f;
27256 dust3.velocity -=
velocity * 0.5f;
27258 dust4.velocity +=
vector * 0.5f;
27260 dust5.position += dust.velocity * 4
f;
27261 if (Main.rand.Next(5) == 0)
27262 {
27263 dust.fadeIn = 0.8f;
27264 }
27265 continue;
27266 }
27267 type = 107;
27268 alpha = 100;
27269 scale = 0.7f;
27271 break;
27272 }
27273 }
27274 dust = Dust.NewDustDirect(
r.TopLeft(),
r.Width,
r.Height, type, 0
f, 0
f, alpha,
default(Color), scale);
27277 dust6.velocity +=
vector;
27279 dust7.velocity *=
num3;
27281 {
27282 case 5:
27283 dust.noGravity = true;
27284 break;
27285 case 1:
27286 dust.noGravity = true;
27287 break;
27288 case 2:
27289 {
27291 dust9.velocity *= 0.1f;
27292 break;
27293 }
27294 case 3:
27295 {
27297 dust8.velocity *= 0.05f;
27298 dust.velocity.Y += 0.15f;
27299 dust.noLight = true;
27300 if (Main.rand.Next(2) == 0)
27301 {
27302 dust.noGravity = true;
27303 dust.scale = 1.75f;
27304 }
27305 break;
27306 }
27307 }
27309 {
27310 dust.noGravity = true;
27311 dust.noLightEmittence = true;
27312 }
27313 }
27314 }
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Vector2 position
The position of this Entity in world coordinates.
int width
The width of this Entity's hitbox, in pixels.
int height
The height of this Entity's hitbox, in pixels.
static ArmorShaderDataSet Armor
bool socialShadowRocketBoots