56084 {
56085
56086
56087
56088
56089
56090
56091
56092
56093
56094
56095
56096
56097
56098
56099
56100
56101
56102
56103
56104
56105
56106
56107
56108
56109
56110
56111
56112
56113
56114
56115
56116
56117
56118
56119
56120
56121
56122
56123
56124
56125
56126
56127
56128
56129
56130
56131
56132
56133
56134
56135
56136
56137
56138
56139
56140
56141
56142
56143
56144
56145
56146
56147
56148
56149
56150
56151
56152
56153
56154
56155
56156
56157
56158
56159
56160
56161
56162
56163
56164
56165
56166
56167
56168
56169
56170
56171
56172
56173
56174
56175
56176
56177
56178
56179
56180
56181
56182
56183
56184
56185
56186
56187
56188
56189
56190
56191
56192
56193
56194
56195
56196
56197
56198
56199
56200
56201
56202
56203
56204
56205
56206
56207
56208
56209
56210
56211
56212
56213
56214
56215
56216
56217
56218
56219
56220
56221
56222
56223
56224
56225
56226
56227
56228
56229
56230
56231
56232
56233
56234
56235
56236
56237
56238
56239
56240
56241
56242
56243
56244
56245
56246
56247
56248
56249
56250
56251
56252
56253
56254
56255
56256
56257
56258
56259
56260
56261
56262
56263
56264
56265
56266
56267
56268
56269
56270
56271
56272
56273
56274
56275
56276
56277
56278
56279
56280
56281
56282
56283
56284
56285
56286
56287
56288
56289
56290
56291
56292
56293
56294
56295
56296
56297
56298
56299
56300
56301
56302
56303
56304
56305
56306
56307
56308
56309
56310
56311
56312
56313
56314
56315
56316
56317
56318
56319
56320
56321
56322
56323
56324
56325
56326
56327
56328
56329
56330
56331
56332
56333
56334
56335
56336
56337
56338
56339
56340
56341
56342
56343
56344
56345
56346
56347
56348
56349
56350
56351
56352
56353
56354
56355
56356
56357
56358
56359
56360
56361
56362
56363
56364
56365
56366
56367
56368
56369
56370
56371
56372
56373
56374
56375
56376
56377
56378
56379
56380
56381
56382
56383
56384
56385
56386
56387
56388 switch ((
int)
ai[0])
56389 {
56390 case 0:
56391 {
56392 for (
int k = 0;
k < 4;
k++)
56393 {
56395 }
56396 for (
int l = 0;
l < 20;
l++)
56397 {
56399 Main.dust[
num30].noGravity =
true;
56401 obj2.velocity *= 3
f;
56404 obj3.velocity *= 1.2f;
56405 Main.dust[
num30].noGravity =
true;
56406 }
56407 for (
int m = 0;
m < 1;
m++)
56408 {
56409 int num31 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56411 obj4.velocity *= 0.3f;
56412 Main.gore[
num31].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56413 Main.gore[
num31].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56414 }
56415 break;
56416 }
56417 case 1:
56418 {
56421 Main.rand.NextFloat();
56423 {
56424 Dust
dust4 = Dust.NewDustPerfect(
center2, 278,
null, 200, Color.Lerp(
celeb2Color2, Color.White, Main.rand.NextFloat() * 0.6f));
56425 dust4.scale = 1.1f;
56426 dust4.fadeIn = 1.3f;
56427 dust4.velocity *= Main.rand.NextFloat() * 2
f + 2
f;
56428 if (
dust4.velocity.Y > 0
f)
56429 {
56430 dust4.velocity *= 0.3f;
56431 }
56432 dust4.velocity *= 2
f;
56433 }
56434 for (
int n = 0;
n < 3;
n++)
56435 {
56436 int num33 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56438 obj5.velocity *= 0.3f;
56439 Main.gore[
num33].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56440 Main.gore[
num33].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56441 }
56448 break;
56449 }
56450 case 2:
56451 {
56454 float num34 = 0.05f;
56455 float num2 = 0.13f;
56456 bool flag = Main.rand.Next(4) == 0;
56458 {
56461 }
56462 float num3 = Main.rand.NextFloatDirection();
56465 {
56471 {
56475 {
56478 }
56480 {
56485 dust10.fadeIn = 1.2f;
56486 dust10.noGravity = true;
56488 }
56489 }
56490 }
56492 {
56494 {
56496 }
56498 {
56500 Main.dust[
num9].noGravity =
true;
56502 obj6.velocity *= 8
f;
56505 obj7.velocity *= 4.2f;
56506 Main.dust[
num9].noGravity =
true;
56507 }
56509 {
56510 int num11 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56512 obj8.velocity *= 0.3f;
56513 Main.gore[
num11].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56514 Main.gore[
num11].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56515 }
56516 }
56517 else
56518 {
56520 {
56522 }
56524 {
56526 Main.dust[
num15].noGravity =
true;
56528 obj9.velocity *= 4
f;
56531 obj10.velocity *= 2.2f;
56532 Main.dust[
num15].noGravity =
true;
56533 }
56535 {
56536 int num17 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56538 obj11.velocity *= 0.3f;
56539 Main.gore[
num17].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56540 Main.gore[
num17].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56541 }
56542 }
56543 break;
56544 }
56545 case 3:
56546 {
56550 {
56552 }
56553 float num21 = Main.rand.NextFloat() * ((float)
Math.PI * 2
f);
56555 {
56556 Dust
dust5 = Dust.NewDustPerfect(
center4, 278,
null, 100, Color.Lerp(
celeb2Color5, Color.White, Main.rand.NextFloat() * 0.3f));
56557 dust5.scale = 1.3f * (((Vector2)(
ref dust5.velocity)).Length() / 2
f);
56558 dust5.fadeIn = 1.5f * (((Vector2)(
ref dust5.velocity)).Length() / 2
f);
56559 dust5.noGravity = true;
56560 dust5.velocity *= 6
f;
56562 {
56563 dust5.velocity.Y *= 0.1f;
56564 }
56565 else
56566 {
56567 dust5.velocity.X *= 0.1f;
56568 }
56569 dust5.velocity =
dust5.velocity.RotatedBy(
num21);
56570 }
56572 {
56573 int num25 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56575 obj14.velocity *= 0.3f;
56576 Main.gore[
num25].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56577 Main.gore[
num25].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56578 }
56579 break;
56580 }
56581 case 4:
56582 {
56585 Main.rand.NextFloat();
56587 {
56588 Dust
dust6 = Dust.NewDustPerfect(
center5, 132,
null, 200);
56589 dust6.scale = 1.1f;
56590 dust6.fadeIn = 1.5f;
56591 dust6.velocity *= Main.rand.NextFloat() * 2
f + 2
f;
56592 if (
dust6.velocity.Y > 0
f)
56593 {
56594 dust6.velocity *= 0.3f;
56595 }
56596 dust6.velocity *= 2
f;
56597 }
56599 {
56600 int num28 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56602 obj15.velocity *= 0.3f;
56603 Main.gore[
num28].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56604 Main.gore[
num28].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56605 }
56606 break;
56607 }
56608 case 5:
56609 {
56613 {
56614 int num19 = Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 278, 0
f, 0
f, 200, Color.Lerp(
celeb2Color4, Color.White, Main.rand.NextFloat() * 0.4f), 2.5f);
56615 Main.dust[
num19].fadeIn = 1.3f;
56616 Main.dust[
num19].scale = 1.1f;
56618 obj12.velocity *= 2
f;
56621 obj13.velocity *= 1.2f;
56622 Main.dust[
num19].noGravity =
true;
56623 }
56624 break;
56625 }
56626 case 6:
56627 {
56630 for (int i = 0; i < 4; i++)
56631 {
56633 }
56635 {
56636 Vector2
vector = Vector2.UnitY.RotatedBy(
num * ((
float)
Math.PI * 2
f)) * (1
f + Main.rand.NextFloatDirection() * 0.1f);
56638 dust7.scale = 1.4f;
56639 dust7.velocity =
vector * 5
f;
56640 dust7.velocity.Y += -3
f;
56641 dust7.velocity *= 2
f;
56642 }
56644 {
56645 Vector2
vector2 = Vector2.UnitY.RotatedBy(
num12 * ((
float)
Math.PI * 2
f)) * (1
f + Main.rand.NextFloatDirection() * 0.2f);
56647 dust8.noGravity = true;
56648 dust8.scale = 0.4f;
56649 dust8.fadeIn = 1.2f;
56651 dust8.velocity.Y += -3
f;
56652 dust8.velocity *= 2
f;
56653 }
56655 {
56656 Vector2
vector3 = Vector2.UnitY.RotatedBy(
num23 * ((
float)
Math.PI * 2
f)) * (1
f + Main.rand.NextFloatDirection() * 0.3f);
56658 dust9.noGravity = true;
56659 dust9.scale = 0.4f;
56660 dust9.fadeIn = 1.3f;
56662 dust9.velocity.Y += -3
f;
56663 dust9.velocity *= 2
f;
56664 }
56665 for (
int j = 0;
j < 1;
j++)
56666 {
56667 int num29 = Gore.NewGore(
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f,
default(Vector2), Main.rand.Next(61, 64));
56669 obj.velocity *= 0.3f;
56670 Main.gore[
num29].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
56671 Main.gore[
num29].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
56672 }
56673 break;
56674 }
56675 }
56676 }
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.
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
void CreateGroundExplosion(float MAX_SPREAD, int fluff, int distFluff, int layerStart, int layerEnd, int layerJump)