57397 {
57398
57399
57400
57401
57402
57403
57404
57405
57406
57407
57408
57409
57410
57411
57412
57413
57414
57415
57416
57417
57418
57419
57420
57421
57422
57423
57424
57425
57426
57427
57428
57429
57430
57431
57432
57433
57434
57435
57436
57437
57438
57439
57440
57441
57442
57443
57444
57445
57446
57447
57448
57449
57450
57451
57452
57453
57454
57455
57456
57457
57458
57459
57460
57461
57462
57463
57464
57465
57466
57467
57468
57469
57470
57471
57472
57473
57474
57475
57476
57477
57478
57479
57480
57481
57482
57483
57484
57485
57486
57487
57488
57489
57490
57491
57492
57493
57494
57495
57496
57497
57498
57499
57500
57501
57502
57503
57504
57505
57506
57507
57508
57509
57510
57511
57512
57513
57514
57515
57516
57517
57518
57519
57520
57521
57522
57523
57524
57525
57526
57527
57528
57529
57530
57531
57532
57533
57534
57535
57536
57537
57538
57539
57540
57541
57542
57543
57544
57545
57546
57547
57548
57549
57550
57551
57552
57553
57554
57555
57556
57557
57558
57559
57560
57561
57562
57563
57564
57565
57566
57567
57568
57569
57570
57571
57572
57573
57574
57575
57576
57577
57578
57579
57580
57581
57582
57583
57584
57585
57586
57587
57588
57589
57590
57591
57592
57593
57594
57595
57596
57597
57598
57599
57600
57601
57602
57603
57604
57605
57606
57607
57608
57609
57610
57611
57612
57613
57614
57615
57616
57617
57618
57619
57620
57621
57622
57623
57624
57625
57626
57627
57628
57629
57630
57631
57632
57633
57634
57635
57636
57637
57638
57639
57640
57641
57642
57643
57644
57645
57646
57647
57648
57649
57650
57651
57652
57653
57654
57655
57656
57657
57658
57659
57660
57661
57662
57663
57664
57665
57666
57667
57668
57669
57670
57671
57672
57673
57674
57675
57676
57677
57678
57679
57680
57681
57682
57683
57684
57685
57686
57687
57688
57689
57690
57691
57692
57693
57694
57695
57696
57697
57698
57699
57700
57701
57702
57703
57704
57705
57706
57707
57708
57709
57710
57711
57712
57713
57714
57715
57716
57717
57718
57719
57720
57721
57722
57723
57724
57725
57726
57727
57728
57729
57730
57731
57732
57733
57734
57735
57736
57737
57738
57739
57740
57741
57742
57743
57744
57745
57746
57747
57748
57749
57750
57751
57752
57753
57754
57755
57756
57757
57758
57759
57760
57761
57762
57763
57764
57765
57766
57767
57768
57769
57770
57771
57772
57773
57774
57775
57776
57777
57778
57779
57780
57781
57782
57783
57784
57785
57786
57787
57788
57789
57790
57791
57792
57793
57794
57795
57796
57797
57798
57799
57800
57801
57802
57803
57804
57805
57806
57807
57808
57809
57810
57811
57812
57813
57814
57815
57816
57817
57818
57819
57820
57821
57822
57823
57824
57825
57826
57827
57828
57829
57830
57831
57832
57833
57834
57835
57836
57837
57838
57839
57840
57841
57842
57843
57844
57845
57846
57847
57848
57849
57850
57851
57852
57853
57854
57855
57856
57857
57858
57859
57860
57861
57862
57863
57864
57865
57866
57867
57868
57869
57870
57871
57872
57873
57874
57875
57876
57877
57878
57879
57880
57881
57882
57883
57884
57885
57886
57887
57888
57889
57890
57891
57892
57893
57894
57895
57896
57897
57898
57899
57900
57901
57902
57903
57904
57905
57906
57907
57908
57909
57910
57911
57912
57913
57914
57915
57916
57917
57918
57919
57920
57921
57922
57923
57924
57925
57926
57927
57928
57929
57930
57931
57932
57933
57934
57935
57936
57937
57938
57939
57940
57941
57942
57943
57944
57945
57946
57947
57948
57949
57950
57951
57952
57953
57954
57955
57956
57957
57958
57959
57960
57961
57962
57963
57964
57965
57966
57967
57968
57969
57970
57971
57972
57973
57974
57975
57976
57977
57978
57979
57980
57981
57982
57983
57984
57985
57986
57987
57988
57989
57990
57991
57992
57993
57994
57995
57996
57997
57998
57999
58000
58001
58002
58003
58004
58005
58006
58007
58008
58009
58010
58011
58012
58013
58014
58015
58016
58017
58018
58019
58020
58021
58022
58023
58024
58025
58026
58027
58028
58029
58030
58031
58032
58033
58034
58035
58036
58037
58038
58039
58040
58041
58042
58043
58044
58045
58046
58047
58048
58049
58050
58051
58052
58053
58054
58055
58056
58057
58058
58059
58060
58061
58062
58063
58064
58065
58066
58067
58068
58069
58070
58071
58072
58073
58074
58075
58076
58077
58078
58079
58080
58081
58082
58083
58084
58085
58086
58087
58088
58089
58090
58091
58092
58093
58094
58095
58096
58097
58098
58099
58100
58101
58102
58103
58104
58105
58106
58107
58108
58109
58110
58111
58112
58113
58114
58115
58116
58117
58118
58119
58120
58121
58122
58123
58124
58125
58126
58127
58128
58129
58130
58131
58132
58133
58134
58135
58136
58137
58138
58139
58140
58141
58142
58143
58144
58145
58146
58147
58148
58149
58150
58151
58152
58153
58154
58155
58156
58157
58158
58159
58160
58161
58162
58163
58164
58165
58166
58167
58168
58169
58170
58171
58172
58173
58174
58175
58176
58177
58178
58179
58180
58181
58182
58183
58184
58185
58186
58187
58188
58189
58190
58191
58192
58193
58194
58195
58196
58197
58198
58199
58200
58201
58202
58203
58204
58205
58206
58207
58208
58209
58210
58211
58212
58213
58214
58215
58216
58217
58218
58219
58220
58221
58222
58223
58224
58225
58226
58227
58228
58229
58230
58231
58232
58233
58234
58235
58236
58237
58238
58239
58240
58241
58242
58243
58244
58245
58246
58247
58248
58249
58250
58251
58252
58253
58254
58255
58256
58257
58258
58259
58260
58261
58262
58263
58264
58265
58266
58267
58268
58269
58270
58271
58272
58273
58274
58275
58276
58277
58278
58279
58280
58281
58282
58283
58284
58285
58286
58287
58288
58289
58290
58291
58292
58293
58294
58295
58296
58297
58298
58299
58300
58301
58302
58303
58304
58305
58306
58307
58308
58309
58310
58311
58312
58313
58314
58315
58316
58317
58318
58319
58320
58321
58322
58323
58324
58325
58326
58327
58328
58329
58330
58331
58332
58333
58334
58335
58336
58337
58338
58339
58340
58341
58342
58343
58344
58345
58346
58347
58348
58349
58350
58351
58352
58353
58354
58355
58356
58357
58358
58359
58360
58361
58362
58363
58364
58365
58366
58367
58368
58369
58370
58371
58372
58373
58374
58375
58376
58377
58378
58379
58380
58381
58382
58383
58384
58385
58386
58387
58388
58389
58390
58391
58392
58393
58394
58395
58396
58397
58398
58399
58400
58401
58402
58403
58404
58405
58406
58407
58408
58409
58410
58411
58412
58413
58414
58415
58416
58417
58418
58419
58420
58421
58422
58423
58424
58425
58426
58427
58428
58429
58430
58431
58432
58433
58434
58435
58436
58437
58438
58439
58440
58441
58442
58443
58444
58445
58446
58447
58448
58449
58450
58451
58452
58453
58454
58455
58456
58457
58458
58459
58460
58461
58462
58463
58464
58465
58466
58467
58468
58469
58470
58471
58472
58473
58474
58475
58476
58477
58478
58479
58480
58481
58482
58483
58484
58485
58486
58487
58488
58489
58490
58491
58492
58493
58494
58495
58496
58497
58498
58499
58500
58501
58502
58503
58504
58505
58506
58507
58508
58509
58510
58511
58512
58513
58514
58515
58516
58517
58518
58519
58520
58521
58522
58523
58524
58525
58526
58527
58528
58529
58530
58531
58532
58533
58534
58535
58536
58537
58538
58539
58540
58541
58542
58543
58544
58545
58546
58547
58548
58549
58550
58551
58552
58553
58554
58555
58556
58557
58558
58559
58560
58561
58562
58563
58564
58565
58566
58567
58568
58569
58570
58571
58572
58573
58574
58575
58576
58577
58578
58579
58580
58581
58582
58583
58584
58585
58586
58587
58588
58589
58590
58591
58592
58593
58594
58595
58596
58597
58598
58599
58600
58601
58602
58603
58604
58605
58606
58607
58608
58609
58610
58611
58612
58613
58614
58615
58616
58617
58618
58619
58620
58621
58622
58623
58624
58625
58626
58627
58628
58629
58630
58631
58632
58633
58634
58635
58636
58637
58638
58639
58640
58641
58642
58643
58644
58645
58646
58647
58648
58649
58650
58651
58652
58653
58654
58655
58656
58657
58658
58659
58660
58661
58662
58663
58664
58665
58666
58667
58668
58669
58670
58671
58672
58673
58674
58675
58676
58677
58678
58679
58680
58681
58682
58683
58684
58685
58686
58687
58688
58689
58690
58691
58692
58693
58694
58695
58696
58697
58698
58699
58700
58701
58702
58703
58704
58705
58706
58707
58708
58709
58710
58711
58712
58713
58714
58715
58716
58717
58718
58719
58720
58721
58722
58723
58724
58725
58726
58727
58728
58729
58730
58731
58732
58733
58734
58735
58736
58737
58738
58739
58740
58741
58742
58743
58744
58745
58746
58747
58748
58749
58750
58751
58752
58753
58754
58755
58756
58757
58758
58759
58760
58761
58762
58763
58764
58765
58766
58767
58768
58769
58770
58771
58772
58773
58774
58775
58776
58777
58778
58779
58780
58781
58782
58783
58784
58785
58786
58787
58788
58789
58790
58791
58792
58793
58794
58795
58796
58797
58798
58799
58800
58801
58802
58803
58804
58805
58806
58807
58808
58809
58810
58811
58812
58813
58814
58815
58816
58817
58818
58819
58820
58821
58822
58823
58824
58825
58826
58827
58828
58829
58830
58831
58832
58833
58834
58835
58836
58837
58838
58839
58840
58841
58842
58843
58844
58845
58846
58847
58848
58849
58850
58851
58852
58853
58854
58855
58856
58857
58858
58859
58860
58861
58862
58863
58864
58865
58866
58867
58868
58869
58870
58871
58872
58873
58874
58875
58876
58877
58878
58879
58880
58881
58882
58883
58884
58885
58886
58887
58888
58889
58890
58891
58892
58893
58894
58895
58896
58897
58898
58899
58900
58901
58902
58903
58904
58905
58906
58907
58908
58909
58910
58911
58912
58913
58914
58915
58916
58917
58918
58919
58920
58921
58922
58923
58924
58925
58926
58927
58928
58929
58930
58931
58932
58933
58934
58935
58936
58937
58938
58939
58940
58941
58942
58943
58944
58945
58946
58947
58948
58949
58950
58951
58952
58953
58954
58955
58956
58957
58958
58959
58960
58961
58962
58963
58964
58965
58966
58967
58968
58969
58970
58971
58972
58973
58974
58975
58976
58977
58978
58979
58980
58981
58982
58983
58984
58985
58986
58987
58988
58989
58990
58991
58992
58993
58994
58995
58996
58997
58998
58999
59000
59001
59002
59003
59004
59005
59006
59007
59008
59009
59010
59011
59012
59013
59014
59015
59016
59017
59018
59019
59020
59021
59022
59023
59024
59025
59026
59027
59028
59029
59030
59031
59032
59033
59034
59035
59036
59037
59038
59039
59040
59041
59042
59043
59044
59045
59046
59047
59048
59049
59050
59051
59052
59053
59054
59055
59056
59057
59058
59059
59060
59061
59062
59063
59064
59065
59066
59067
59068
59069
59070
59071
59072
59073
59074
59075
59076
59077
59078
59079
59080
59081
59082
59083
59084
59085
59086
59087
59088
59089
59090
59091
59092
59093
59094
59095
59096
59097
59098
59099
59100
59101
59102
59103
59104
59105
59106
59107
59108
59109
59110
59111
59112
59113
59114
59115
59116
59117
59118
59119
59120
59121
59122
59123
59124
59125
59126
59127
59128
59129
59130
59131
59132
59133
59134
59135
59136
59137
59138
59139
59140
59141
59142
59143
59144
59145
59146
59147
59148
59149
59150
59151
59152
59153
59154
59155
59156
59157
59158
59159
59160
59161
59162
59163
59164
59165
59166
59167
59168
59169
59170
59171
59172
59173
59174
59175
59176
59177
59178
59179
59180
59181
59182
59183
59184
59185
59186
59187
59188
59189
59190
59191
59192
59193
59194
59195
59196
59197
59198
59199
59200
59201
59202
59203
59204
59205
59206
59207
59208
59209
59210
59211
59212
59213
59214
59215
59216
59217
59218
59219
59220
59221
59222
59223
59224
59225
59226
59227
59228
59229
59230
59231
59232
59233
59234
59235
59236
59237
59238
59239
59240
59241
59242
59243
59244
59245
59246
59247
59248
59249
59250
59251
59252
59253
59254
59255
59256
59257
59258
59259
59260
59261
59262
59263
59264
59265
59266
59267
59268
59269
59270
59271
59272
59273
59274
59275
59276
59277
59278
59279
59280
59281
59282
59283
59284
59285
59286
59287
59288
59289
59290
59291
59292
59293
59294
59296 {
59298 }
59300 {
59306 {
59308 ((Color)(
ref color)).A =
byte.MaxValue;
59309 for (int i = 0; i < 4; i++)
59310 {
59311 Dust
obj = Main.dust[Dust.NewDust(
base.Center, 0, 0, 264)];
59312 obj.position =
base.Center;
59313 obj.velocity =
velocity * 2
f + Utils.RandomVector2(Main.rand, -1
f, 1
f);
59314 obj.color = color;
59315 obj.scale = 1.2f;
59316 obj.noLight = true;
59317 obj.noGravity = true;
59318 obj.customData = Main.player[
owner];
59319 }
59321 {
59323 }
59324 else
59325 {
59327 }
59328 }
59331 {
59333 }
59335 {
59338 {
59340 }
59341 }
59343 {
59345 ((Color)(
ref color2)).A =
byte.MaxValue;
59346 Dust
obj2 = Main.dust[Dust.NewDust(
base.Center, 0, 0, 263)];
59347 obj2.position =
base.Center;
59350 obj2.noGravity = true;
59351 obj2.scale = 0.6f;
59352 }
59353 }
59355 {
59357 Main.dust[
num].noGravity =
true;
59359 obj3.velocity *= 0.25f;
59361 obj4.velocity +=
velocity * 0.75f;
59363 {
59366 for (
int j = 0;
j < 20;
j++)
59367 {
59369 Main.dust[
num].noGravity =
true;
59371 obj5.velocity *= 0.25f;
59374 Main.dust[
num].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
59375 Main.dust[
num].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
59376 }
59377 }
59378 }
59380 {
59383 {
59385 }
59386 }
59388 {
59390 {
59393 }
59396 {
59398 }
59402 {
59406 {
59408 }
59409 }
59410 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.3f, 1.1f, 0.5f);
59411 }
59413 {
59415 {
59418 }
59419 else if (
ai[1] == 1
f && Main.netMode != 1)
59420 {
59423 for (
int k = 0;
k < 255;
k++)
59424 {
59425 if (Main.player[
k].active && !Main.player[
k].dead)
59426 {
59427 Vector2
center = Main.player[
k].Center;
59430 {
59433 }
59434 }
59435 }
59437 {
59439 return;
59440 }
59442 {
59446 }
59447 }
59448 else if (
ai[1] > 20
f &&
ai[1] < 200
f)
59449 {
59452 if (!Main.player[
num188].active || Main.player[
num188].dead)
59453 {
59457 }
59458 else
59459 {
59463 {
59465 return;
59466 }
59468 if (
vector == Vector2.Zero)
59469 {
59471 }
59474 }
59475 }
59476 if (
ai[1] >= 1
f &&
ai[1] < 20
f)
59477 {
59480 {
59482 }
59483 }
59486 {
59488 }
59492 {
59496 {
59498 }
59499 }
59500 Lighting.AddLight(
base.Center, 1.1f, 0.9f, 0.4f);
59503 {
59505 for (
int l = 0;
l < 12;
l++)
59506 {
59510 int num221 = Dust.NewDust(
base.Center, 0, 0, 6, 0
f, 0
f, 160);
59511 Main.dust[
num221].scale = 1.1f;
59512 Main.dust[
num221].noGravity =
true;
59516 }
59517 }
59518 if (Main.rand.Next(4) == 0)
59519 {
59520 for (
int m = 0;
m < 1;
m++)
59521 {
59522 Vector2
vector12 = -Vector2.UnitX.RotatedByRandom(0.19634954631328583).RotatedBy(
velocity.ToRotation());
59525 obj7.velocity *= 0.1f;
59527 Main.dust[
num232].fadeIn = 0.9f;
59528 }
59529 }
59530 if (Main.rand.Next(32) == 0)
59531 {
59532 for (
int n = 0;
n < 1;
n++)
59533 {
59534 Vector2
vector23 = -Vector2.UnitX.RotatedByRandom(0.39269909262657166).RotatedBy(
velocity.ToRotation());
59537 obj8.velocity *= 0.3f;
59539 if (Main.rand.Next(2) == 0)
59540 {
59541 Main.dust[
num2].fadeIn = 1.4f;
59542 }
59543 }
59544 }
59545 if (Main.rand.Next(2) == 0)
59546 {
59548 {
59549 Vector2
vector29 = -Vector2.UnitX.RotatedByRandom(0.7853981852531433).RotatedBy(
velocity.ToRotation());
59552 obj9.velocity *= 0.3f;
59553 Main.dust[
num23].noGravity =
true;
59555 if (Main.rand.Next(2) == 0)
59556 {
59557 Main.dust[
num23].fadeIn = 1.4f;
59558 }
59559 }
59560 }
59561 }
59563 {
59565 {
59568 }
59569 else if (
ai[1] == 1
f && Main.netMode != 1)
59570 {
59574 {
59575 if (Main.player[
num56].active && !Main.player[
num56].dead)
59576 {
59580 {
59583 }
59584 }
59585 }
59587 {
59589 return;
59590 }
59592 {
59596 }
59597 }
59598 else if (
ai[1] > 20
f &&
ai[1] < 200
f)
59599 {
59602 if (!Main.player[
num78].active || Main.player[
num78].dead)
59603 {
59607 }
59608 else
59609 {
59613 {
59615 return;
59616 }
59619 {
59621 }
59624 }
59625 }
59626 if (
ai[1] >= 1
f &&
ai[1] < 20
f)
59627 {
59630 {
59632 }
59633 }
59636 {
59638 }
59642 {
59646 {
59648 }
59649 }
59650 Lighting.AddLight(
base.Center, 0.2f, 0.1f, 0.6f);
59653 {
59656 {
59660 int num121 = Dust.NewDust(
base.Center, 0, 0, 27, 0
f, 0
f, 160);
59661 Main.dust[
num121].scale = 1.1f;
59662 Main.dust[
num121].noGravity =
true;
59666 }
59667 }
59668 if (Main.rand.Next(4) == 0)
59669 {
59671 {
59672 Vector2
vector31 = -Vector2.UnitX.RotatedByRandom(0.19634954631328583).RotatedBy(
velocity.ToRotation());
59675 obj10.velocity *= 0.1f;
59677 Main.dust[
num143].fadeIn = 0.9f;
59678 }
59679 }
59680 if (Main.rand.Next(32) == 0)
59681 {
59683 {
59684 Vector2
vector32 = -Vector2.UnitX.RotatedByRandom(0.39269909262657166).RotatedBy(
velocity.ToRotation());
59687 obj11.velocity *= 0.3f;
59689 if (Main.rand.Next(2) == 0)
59690 {
59691 Main.dust[
num161].fadeIn = 1.4f;
59692 }
59693 }
59694 }
59695 if (Main.rand.Next(2) == 0)
59696 {
59698 {
59699 Vector2
vector33 = -Vector2.UnitX.RotatedByRandom(0.7853981852531433).RotatedBy(
velocity.ToRotation());
59702 obj12.velocity *= 0.3f;
59703 Main.dust[
num163].noGravity =
true;
59705 if (Main.rand.Next(2) == 0)
59706 {
59707 Main.dust[
num163].fadeIn = 1.4f;
59708 }
59709 }
59710 }
59711 }
59713 {
59717 Vector2
vector34 =
default(Vector2);
59720 Vector3
rgb2 =
default(Vector3);
59723 int num170 = Utils.SelectRandom<
int>(Main.rand, 242, 73, 72, 71, 255);
59726 {
59733 num170 = Utils.SelectRandom<
int>(Main.rand, 242, 59, 88);
59734 }
59736 {
59738 localAI[0] = -Main.rand.Next(48);
59740 }
59741 else if (
ai[1] == 1
f &&
owner == Main.myPlayer)
59742 {
59746 {
59747 if (Main.npc[
num174].active && Main.npc[
num174].CanBeChasedBy(
this))
59748 {
59752 {
59755 }
59756 }
59757 }
59759 {
59761 return;
59762 }
59764 {
59768 }
59769 }
59771 {
59774 if (!Main.npc[
num176].active || !Main.npc[
num176].CanBeChasedBy(
this))
59775 {
59779 }
59780 else
59781 {
59785 {
59787 return;
59788 }
59790 {
59793 }
59796 }
59797 }
59799 {
59802 {
59804 }
59805 }
59808 {
59810 }
59814 {
59818 {
59820 }
59821 }
59822 Lighting.AddLight(
base.Center,
rgb2);
59826 {
59828 }
59829 else if (
alpha == 0)
59830 {
59832 {
59833 Vector2
vector3 = Vector2.UnitX * -30
f;
59837 Main.dust[
num180].noGravity =
true;
59840 }
59841 }
59842 if (Main.rand.Next(12) == 0)
59843 {
59845 {
59846 Vector2
vector4 = -Vector2.UnitX.RotatedByRandom(0.19634954631328583).RotatedBy(
velocity.ToRotation());
59849 obj13.velocity *= 0.1f;
59851 Main.dust[
num182].fadeIn = 0.9f;
59852 }
59853 }
59854 if (Main.rand.Next(64) == 0)
59855 {
59857 {
59858 Vector2
vector5 = -Vector2.UnitX.RotatedByRandom(0.39269909262657166).RotatedBy(
velocity.ToRotation());
59861 obj14.velocity *= 0.3f;
59863 if (Main.rand.Next(2) == 0)
59864 {
59865 Main.dust[
num184].fadeIn = 1.4f;
59866 }
59867 }
59868 }
59869 if (Main.rand.Next(4) == 0)
59870 {
59872 {
59873 Vector2
vector6 = -Vector2.UnitX.RotatedByRandom(0.7853981852531433).RotatedBy(
velocity.ToRotation());
59876 obj15.velocity *= 0.3f;
59877 Main.dust[
num186].noGravity =
true;
59879 if (Main.rand.Next(2) == 0)
59880 {
59881 Main.dust[
num186].fadeIn = 1.4f;
59882 }
59883 }
59884 }
59885 if (Main.rand.Next(12) == 0 &&
type == 634)
59886 {
59887 Vector2
vector7 = -Vector2.UnitX.RotatedByRandom(0.19634954631328583).RotatedBy(
velocity.ToRotation());
59890 obj16.velocity *= 0.3f;
59892 Main.dust[
num187].fadeIn = 0.9f;
59893 Main.dust[
num187].noGravity =
true;
59894 }
59895 if (Main.rand.Next(3) == 0 &&
type == 635)
59896 {
59897 Vector2
vector8 = -Vector2.UnitX.RotatedByRandom(0.19634954631328583).RotatedBy(
velocity.ToRotation());
59900 obj17.velocity *= 0.3f;
59902 Main.dust[
num189].fadeIn = 1.2f;
59903 Main.dust[
num189].scale = 1.5f;
59904 Main.dust[
num189].noGravity =
true;
59905 }
59906 }
59908 {
59911 {
59913 }
59917 {
59921 {
59923 }
59924 }
59929 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.4f, 0.85f, 0.9f);
59931 if ((
double)
scale < 0.85)
59932 {
59933 num190 = ((Main.rand.Next(3) == 0) ? 1 : 0);
59934 }
59935 else
59936 {
59940 }
59942 {
59945 obj18.position -= Vector2.One * 3
f;
59946 Main.dust[
num192].scale = 0.5f;
59947 Main.dust[
num192].noGravity =
true;
59950 }
59951 }
59953 {
59956 {
59958 }
59962 {
59966 {
59968 }
59969 }
59970 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.4f, 0.85f, 0.9f);
59972 {
59974 }
59977 {
59979 return;
59980 }
59981 }
59983 {
59986 {
59989 {
59992 {
59995 }
59996 }
59997 }
59998 if (Vector2.Distance(
base.Center,
new Vector2(
ai[0],
ai[1]) * 16
f + Vector2.One * 8
f) <= 16
f)
59999 {
60001 return;
60002 }
60004 {
60007 {
60009 return;
60010 }
60011 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.3f, 0.45f, 0.8f);
60014 {
60017 {
60021 int num194 = Dust.NewDust(
base.Center, 0, 0, 135);
60022 Main.dust[
num194].scale = 1.5f;
60023 Main.dust[
num194].noGravity =
true;
60026 }
60027 }
60028 }
60029 }
60031 {
60033 {
60035 }
60037 {
60039 }
60041 {
60042 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.25f, 0.4f, 0.7f);
60043 }
60045 {
60046 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.7f, 0.65f, 0.3f);
60047 }
60049 {
60050 Lighting.AddLight(
base.Center, 0.7f, 0.3f, 0.3f);
60051 }
60055 {
60058 }
60060 {
60063 {
60065 {
60066 int num198 = Dust.NewDust(
base.Center -
velocity / 2
f, 0, 0, 182, 0
f, 0
f, 100,
default(Color), 1.4f);
60068 obj19.velocity *= 0.2f;
60071 Main.dust[
num198].noGravity =
true;
60072 }
60073 }
60075 {
60077 }
60078 }
60079 else
60080 {
60083 {
60085 return;
60086 }
60087 }
60088 }
60090 {
60091 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.4f, 0.1f, 0.2f);
60092 }
60094 {
60095 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.4f, 0.1f, 0.3f);
60097 {
60099 {
60101 }
60103 }
60104 if (Main.rand.Next(2) == 0)
60105 {
60106 Vector2
vector9 = Vector2.UnitY.RotatedByRandom(6.2831854820251465);
60108 obj21.noGravity = true;
60110 obj21.velocity =
vector9.RotatedBy(-1.5707963705062866) * 2
f;
60111 obj21.velocity = Vector2.Zero;
60112 obj21.scale = 0.5f + Main.rand.NextFloat();
60113 obj21.fadeIn = 0.5f;
60114 }
60115 }
60117 {
60118 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.15f, 0.15f, 0.4f);
60119 }
60121 {
60122 int num200 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100);
60123 Main.dust[
num200].noLight =
true;
60124 Main.dust[
num200].noGravity =
true;
60127 obj22.position -= Vector2.One * 4
f;
60128 Main.dust[
num200].scale = 0.8f;
60130 {
60133 {
60135 }
60136 }
60137 }
60139 {
60141 {
60144 }
60146 {
60149 {
60151 Main.dust[
num202].position = Vector2.Lerp(Main.dust[
num202].position,
base.Center, 0.25f);
60152 Main.dust[
num202].scale = 0.5f;
60153 Main.dust[
num202].noGravity =
true;
60155 obj23.velocity /= 2
f;
60157 obj24.velocity +=
velocity * 0.66f;
60158 }
60159 }
60161 {
60163 {
60166 Main.dust[
num204].scale = 0.3f;
60167 Main.dust[
num204].noGravity =
true;
60168 Main.dust[
num204].velocity = Vector2.Zero;
60169 }
60170 }
60171 }
60173 {
60175 {
60178 }
60181 {
60183 }
60187 {
60191 {
60193 }
60194 }
60195 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.3f, 0.8f, 1.1f);
60196 }
60198 {
60200 {
60204 {
60206 dust.velocity *= 1
f;
60207 dust.velocity +=
velocity * 0.65f;
60208 dust.scale = 0.6f;
60209 dust.fadeIn = 0.8f;
60210 dust.noGravity = true;
60211 dust.noLight = true;
60212 dust.position += dust.velocity * 3
f;
60213 }
60214 }
60217 {
60219 }
60223 {
60227 {
60229 }
60230 }
60231 Lighting.AddLight((
int)
base.Center.X / 16, (
int)
base.Center.Y / 16, 0.5f, 0.2f, 1.1f);
60232 }
60234 {
60237 {
60239 }
60243 {
60244 Vector2
spinningpoint4 = Utils.RandomVector2(Main.rand, -0.5f, 0.5f) *
new Vector2(20
f, 80
f);
60246 Dust
dust4 = Dust.NewDustDirect(
base.Center, 0, 0, 60);
60247 dust4.alpha = 127;
60248 dust4.fadeIn = 1.5f;
60249 dust4.scale = 1.3f;
60250 dust4.velocity *= 0.3f;
60252 dust4.noGravity = true;
60253 dust4.noLight = true;
60254 dust4.color = new Color(255, 255, 255, 0);
60255 }
60256 Lighting.AddLight(
base.Center, 1.1f, 0.3f, 0.4f);
60257 }
60259 {
60262 {
60264 }
60266 }
60268 {
60270 Main.dust[
num207].scale = (float)Main.rand.Next(1, 10) * 0.1f;
60271 Main.dust[
num207].noGravity =
true;
60272 Main.dust[
num207].fadeIn = 1.5f;
60274 obj25.velocity *= 0.25f;
60276 obj26.velocity +=
velocity * 0.25f;
60277 }
60279 {
60282 {
60286 {
60288 }
60289 }
60290 }
60291 if (
type == 225 && Main.rand.Next(2) == 0)
60292 {
60294 Main.dust[
num208].noGravity =
true;
60295 Main.dust[
num208].scale = 1.3f;
60297 obj27.velocity *= 0.5f;
60298 }
60300 {
60302 {
60304 Main.dust[
num209].noGravity =
true;
60305 Main.dust[
num209].noLight =
true;
60307 obj28.velocity *= 0.5f;
60308 }
60311 {
60313 }
60315 {
60318 }
60319 }
60321 {
60323 {
60325 frame = Main.rand.Next(3);
60326 }
60327 if (
type != 920 &&
type != 921 &&
alpha == 0 && Main.rand.Next(3) == 0)
60328 {
60333 bool noGravity = true;
60336 {
60339 }
60341 {
60347 noGravity = Main.rand.Next(2) == 0;
60348 }
60350 {
60354 }
60357 obj29.velocity *= 0.3f;
60359 obj30.velocity +=
velocity * 0.3f;
60360 Main.dust[
num214].noGravity = noGravity;
60361 }
60364 {
60366 }
60367 if (
type != 937 &&
ai[1] == 0
f)
60368 {
60371 {
60373 }
60374 else
60375 {
60377 }
60378 }
60379 }
60380 else if (
type == 176)
60381 {
60383 {
60385 Main.dust[
num215].noGravity =
true;
60386 Main.dust[
num215].noLight =
true;
60388 obj31.velocity *= 0.15f;
60389 Main.dust[
num215].fadeIn = 0.8f;
60390 }
60393 {
60395 }
60397 {
60400 }
60401 }
60403 {
60406 {
60408 }
60409 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.9f, 0.6f, 0.2f);
60411 {
60413 if (Main.rand.Next(3) != 0)
60414 {
60416 Main.dust[
num217].scale *= 1.3f + (float)Main.rand.Next(10) * 0.05f;
60418 obj32.velocity *= 0.2f;
60419 Main.dust[
num217].noGravity =
true;
60420 Main.dust[
num217].noLight =
true;
60422 obj33.velocity +=
velocity * 0.25f;
60423 }
60424 if (Main.rand.Next(4) == 0)
60425 {
60427 Main.dust[
num218].fadeIn = 0.6f + (float)Main.rand.Next(5) * 0.1f;
60429 obj34.velocity *= 0.05f;
60431 obj35.velocity +=
velocity * 0.25f;
60432 }
60433 }
60435 {
60438 }
60439 }
60441 {
60444 {
60446 }
60447 Lighting.AddLight((
int)base.Center.X / 16, (int)
base.Center.Y / 16, 0.9f, 0.6f, 0.2f);
60449 {
60451 if (Main.rand.Next(3) != 0)
60452 {
60454 Main.dust[
num220].scale *= 1.2f + (float)Main.rand.Next(10) * 0.05f;
60456 obj36.velocity *= 0.2f;
60457 Main.dust[
num220].noGravity =
true;
60458 Main.dust[
num220].noLight =
true;
60460 obj37.velocity +=
velocity * 0.25f;
60461 }
60462 if (Main.rand.Next(4) == 0)
60463 {
60465 Main.dust[
num222].fadeIn = 0.5f + (float)Main.rand.Next(5) * 0.05f;
60467 obj38.velocity *= 0.05f;
60468 }
60469 }
60471 {
60474 }
60475 }
60477 {
60480 {
60483 {
60485 }
60486 }
60487 }
60488 else if (
type == 83 &&
ai[1] == 0
f)
60489 {
60492 }
60493 else if (
type == 408 &&
ai[1] == 0
f)
60494 {
60497 }
60498 else if (
type == 259 &&
ai[1] == 0
f)
60499 {
60502 }
60503 else if (
type == 110 &&
ai[1] == 0
f)
60504 {
60507 }
60508 else if (
type == 302 &&
ai[1] == 0
f)
60509 {
60512 }
60513 else if (
type == 438 &&
ai[1] == 0
f)
60514 {
60517 }
60518 else if (
type == 593 &&
ai[1] == 0
f)
60519 {
60522 }
60523 else if (
type == 592 &&
ai[1] == 0
f)
60524 {
60527 }
60528 else if (
type == 462 &&
ai[1] == 0
f)
60529 {
60531 if (Main.rand.Next(2) == 0)
60532 {
60534 }
60535 else
60536 {
60538 }
60540 int num223 = Main.rand.Next(5, 10);
60542 {
60543 int num225 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100);
60544 Main.dust[
num225].velocity.Y -= 1
f;
60548 obj40.position -= Vector2.One * 4
f;
60549 Main.dust[
num225].noGravity =
true;
60550 }
60551 }
60552 else if (
type == 84 &&
ai[1] == 0
f)
60553 {
60556 }
60557 else if (
type == 389 &&
ai[1] == 0
f)
60558 {
60561 }
60562 else if (
type == 257 &&
ai[1] == 0
f)
60563 {
60566 }
60567 else if (
type == 100 &&
ai[1] == 0
f)
60568 {
60571 }
60572 else if (
type == 98 &&
ai[1] == 0
f)
60573 {
60576 }
60577 else if (
type == 184 &&
ai[1] == 0
f)
60578 {
60581 }
60582 else if (
type == 980 &&
ai[1] == 0
f)
60583 {
60586 }
60587 else if (
type == 195 &&
ai[1] == 0
f)
60588 {
60591 }
60592 else if (
type == 275 &&
ai[1] == 0
f)
60593 {
60596 }
60597 else if (
type == 276 &&
ai[1] == 0
f)
60598 {
60601 }
60602 else if ((
type == 81 ||
type == 82) &&
ai[1] == 0
f)
60603 {
60606 }
60607 else if (
type == 180 &&
ai[1] == 0
f)
60608 {
60611 }
60612 else if (
type == 248 &&
ai[1] == 0
f)
60613 {
60616 }
60617 else if (
type == 576 &&
ai[1] == 0
f)
60618 {
60621 }
60623 {
60627 {
60630 float num228 = ((
num226 == 0) ? (12
f + 8
f * Main.rand.NextFloat()) : (12
f * Main.rand.NextFloat()));
60632 Dust
obj41 = Main.dust[Dust.NewDust(
center4, 8, 8, 229, 0
f, 0
f, 100, Color.Transparent, 1
f + Main.rand.NextFloat() * 0.5f)];
60633 obj41.noGravity = true;
60636 }
60637 }
60638 else if (
type == 710)
60639 {
60642 {
60644 }
60645 if (Main.rand.Next(4) == 0)
60646 {
60648 if (Main.rand.Next(2) == 0)
60649 {
60651 Main.dust[
num229].noGravity =
true;
60652 }
60654 Main.dust[
num229].noGravity =
true;
60656 obj42.velocity *= 2
f;
60660 {
60661 Main.dust[
num229].fadeIn = 1.5f;
60662 }
60663 else
60664 {
60665 Main.dust[
num229].fadeIn = 1.22f;
60666 }
60668 {
60670 }
60671 }
60672 }
60673 else if (
type == 639)
60674 {
60676 {
60681 }
60684 {
60686 }
60687 }
60688 else if (
type == 640)
60689 {
60692 {
60694 }
60696 {
60700 {
60702 {
60704 }
60705 }
60707 {
60709 return;
60710 }
60712 {
60713 Vector2
vector13 =
default(Vector2);
60715 {
60717 float num234 = (float)Main.rand.NextDouble() * 0.8f + 1
f;
60720 Main.dust[
num235].noGravity =
true;
60721 Main.dust[
num235].scale = 1.2f;
60722 }
60723 if (Main.rand.Next(10) == 0)
60724 {
60725 Vector2
vector14 =
velocity.RotatedBy(1.5707963705062866) * ((float)Main.rand.NextDouble() - 0.5f) * (
float)
width;
60726 int num236 = Dust.NewDust(
base.Center +
vector14 - Vector2.One * 4
f, 8, 8, 31, 0
f, 0
f, 100,
default(Color), 1.5f);
60728 obj44.velocity *= 0.5f;
60730 }
60731 }
60732 }
60734 {
60735 float num237 =
rotation + (float)
Math.PI / 2
f + ((Main.rand.Next(2) == 1) ? (-1
f) : 1
f) * ((
float)Math.PI / 2
f);
60736 float num238 = (float)Main.rand.NextDouble() * 0.25f + 0.25f;
60737 Vector2
vector15 =
default(Vector2);
60740 Main.dust[
num239].noGravity =
true;
60741 Main.dust[
num239].scale = 1.2f;
60742 }
60743 }
60745 {
60747 Main.dust[
num240].noGravity =
true;
60749 Main.dust[
num240].noGravity =
true;
60750 }
60751 else if (
type == 55)
60752 {
60754 Main.dust[
num241].noGravity =
true;
60755 }
60756 else if (
type == 719)
60757 {
60758 if (Main.rand.Next(2) == 0)
60759 {
60761 }
60763 {
60766 {
60768 dust5.noGravity = true;
60769 dust5.velocity +=
velocity * 0.75f;
60770 }
60772 {
60774 dust6.noGravity = true;
60775 dust6.velocity *= 2
f;
60776 }
60777 }
60778 }
60779 else if (
type == 763)
60780 {
60782 {
60785 {
60787 dust7.noGravity = true;
60788 dust7.velocity *= 1.5f;
60789 }
60790 }
60791 }
60792 else if (
type == 772)
60793 {
60794 if (Main.rand.Next(7) == 0)
60795 {
60797 {
60798 Dust
dust8 = Dust.NewDustDirect(
position -
velocity,
width,
height, Main.rand.NextFromList<
int>(86, 87, 88, 89, 90, 91, 138), 0
f, 0
f, 0,
default(Color), 0.7f);
60799 dust8.noGravity = true;
60801 dust8.fadeIn = 0.8f;
60802 }
60803 }
60804 }
60805 else if (
type == 374)
60806 {
60808 {
60811 }
60812 if (Main.rand.Next(2) == 0)
60813 {
60815 Main.dust[
num6].noGravity =
true;
60817 obj45.velocity *= 0.5f;
60818 }
60819 }
60820 else if (
type == 376)
60821 {
60823 {
60825 }
60828 {
60831 {
60833 }
60835 {
60837 Main.dust[
num9].noGravity =
true;
60838 Main.dust[
num9].velocity.X *= 0.3f;
60839 Main.dust[
num9].velocity.Y *= 0.3f;
60840 Main.dust[
num9].noLight =
true;
60841 }
60843 {
60845 return;
60846 }
60847 }
60848 }
60849 else if (
type == 91 && Main.rand.Next(2) == 0)
60850 {
60851 int num243 = ((Main.rand.Next(2) != 0) ? 58 : 15);
60854 obj46.velocity *= 0.25f;
60855 }
60857 {
60859 {
60861 }
60863 {
60865 }
60866 }
60868 {
60869 case 14:
60870 case 20:
60871 case 36:
60872 case 83:
60873 case 84:
60874 case 89:
60875 case 100:
60876 case 104:
60877 case 110:
60878 case 158:
60879 case 159:
60880 case 160:
60881 case 161:
60882 case 180:
60883 case 279:
60884 case 283:
60885 case 284:
60886 case 285:
60887 case 286:
60888 case 287:
60889 case 389:
60891 {
60893 }
60895 {
60897 }
60898 break;
60899 case 576:
60900 case 577:
60903 {
60905 {
60907 }
60909 {
60911 }
60912 }
60913 break;
60914 }
60916 {
60918 Main.dust[
num11].noGravity =
true;
60920 obj47.velocity *= 0.1f;
60921 Main.dust[
num11].scale = 0.75f;
60922 Main.dust[
num11].position = (Main.dust[
num11].position +
base.Center) / 2
f;
60924 obj48.position +=
velocity * (float)Main.rand.Next(0, 101) * 0.01f;
60925 }
60927 {
60930 {
60932 }
60934 {
60936 }
60937 }
60939 {
60940 DelegateMethods.v3_1 =
new Vector3(0.6
f, 1
f, 1
f) * 0.2f;
60941 Utils.PlotTileLine(
base.Center,
base.Center +
velocity * 10
f, 8
f, DelegateMethods.CastLightOpen);
60943 {
60947 frame = Main.rand.Next(14);
60950 {
60954 int num16 = Dust.NewDust(
base.Center, 0, 0, 180);
60955 Main.dust[
num16].scale = 1.5f;
60956 Main.dust[
num16].noGravity =
true;
60959 }
60960 }
60961 }
60963 {
60964 DelegateMethods.v3_1 =
new Vector3(0.4
f, 0.4
f, 0.4
f) * 0.7f;
60965 Utils.PlotTileLine(
base.Center,
base.Center +
velocity * 10
f, 8
f, DelegateMethods.CastLightOpen);
60967 {
60968 frame = Main.rand.Next(2) * 4;
60969 }
60971 {
60975 {
60977 }
60979 {
60981 }
60982 }
60984 {
60987 frame = Main.rand.Next(14);
60990 {
60994 int num19 = Dust.NewDust(
base.Center, 0, 0, 15);
60995 Main.dust[
num19].scale = 1.7f;
60996 Main.dust[
num19].noGravity =
true;
61000 obj49.velocity *= 0.7f;
61002 obj50.position += Main.dust[
num19].velocity * 5
f;
61003 }
61004 }
61005 }
61007 {
61009 {
61011 {
61013 Main.dust[
num21].noGravity =
true;
61015 obj51.velocity *= 0.3f;
61016 Main.dust[
num21].noLight =
true;
61017 }
61018 }
61020 {
61024 {
61028 {
61032 int num25 = Dust.NewDust(
base.Center, 0, 0, 62);
61033 Main.dust[
num25].scale = 1.5f;
61034 Main.dust[
num25].noLight =
true;
61035 Main.dust[
num25].noGravity =
true;
61038 }
61039 }
61040 }
61041 }
61043 {
61045 {
61047 return;
61048 }
61050 {
61054 {
61055 if (Main.rand.Next(4) != 0)
61056 {
61057 Dust
dust9 = Dust.NewDustDirect(
base.Center -
base.Size / 4
f,
width / 2,
height / 2, Utils.SelectRandom<
int>(Main.rand, 6, 31, 31));
61058 dust9.noGravity = true;
61059 dust9.velocity *= 2.3f;
61060 dust9.fadeIn = 1.5f;
61061 dust9.noLight = true;
61062 }
61063 }
61064 }
61067 {
61068 activeSound.Position =
base.Center;
61069 }
61070 else
61071 {
61073 }
61075 {
61077 {
61078 if (Main.rand.Next(4) != 0)
61079 {
61080 Dust
dust10 = Dust.NewDustDirect(
base.Center -
base.Size / 4
f,
width / 2,
height / 2, Utils.SelectRandom<
int>(Main.rand, 6, 31, 31));
61081 dust10.noGravity = true;
61082 dust10.velocity *= 2.3f;
61083 dust10.fadeIn = 1.5f;
61084 dust10.noLight = true;
61085 }
61086 }
61091 {
61093 dust11.noGravity = true;
61095 dust11.velocity *= 0
f;
61096 dust11.fadeIn = 1.4f;
61097 dust11.scale = 1.15f;
61098 dust11.noLight = true;
61099 dust11.position +=
velocity * 1.2f;
61102 dust12.noGravity = true;
61104 dust12.velocity *= 0
f;
61105 dust12.fadeIn = 1.4f;
61106 dust12.scale = 1.15f;
61107 dust12.noLight = true;
61108 dust12.position +=
velocity * 0.5f;
61109 dust12.position +=
velocity * 1.2f;
61111 }
61112 }
61114 {
61116 }
61119 {
61122 {
61126 {
61130 int num31 = Dust.NewDust(
base.Center, 0, 0, 6);
61131 Main.dust[
num31].scale = 1.5f;
61132 Main.dust[
num31].noLight =
true;
61133 Main.dust[
num31].noGravity =
true;
61136 }
61137 }
61138 }
61139 DelegateMethods.v3_1 =
new Vector3(1
f, 0.6
f, 0.2
f);
61140 Utils.PlotTileLine(
base.Center,
base.Center +
velocity * 4
f, 40
f, DelegateMethods.CastLightOpen);
61141 }
61143 {
61146 {
61148 }
61150 {
61152 }
61155 bool flag2 =
false;
61157 {
61160 {
61163 {
61165 break;
61166 }
61167 }
61168 }
61170 {
61171 int num35 = Main.rand.Next(15, 31);
61173 {
61174 int num37 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100,
default(Color), 0.8f);
61176 obj52.velocity *= 1.6f;
61177 Main.dust[
num37].velocity.Y -= 1
f;
61180 Main.dust[
num37].noGravity =
true;
61181 }
61182 }
61183 }
61185 {
61187 {
61189 }
61191 {
61193 }
61194 }
61196 {
61198 {
61200 }
61201 else
61202 {
61204 }
61206 {
61208 }
61210 {
61212 }
61213 }
61215 {
61217 {
61219 }
61221 {
61223 }
61224 }
61226 {
61228 }
61230 bool flag4 =
false;
61232 {
61233 case 5:
61234 case 14:
61235 case 20:
61236 case 36:
61237 case 38:
61238 case 55:
61239 case 83:
61240 case 84:
61241 case 88:
61242 case 89:
61243 case 98:
61244 case 100:
61245 case 104:
61246 case 110:
61247 case 158:
61248 case 159:
61249 case 160:
61250 case 161:
61251 case 180:
61252 case 184:
61253 case 242:
61254 case 248:
61255 case 257:
61256 case 259:
61257 case 265:
61258 case 270:
61259 case 279:
61260 case 283:
61261 case 284:
61262 case 285:
61263 case 286:
61264 case 287:
61265 case 299:
61266 case 302:
61267 case 323:
61268 case 325:
61269 case 348:
61270 case 349:
61271 case 350:
61272 case 355:
61273 case 374:
61274 case 376:
61275 case 389:
61276 case 435:
61277 case 436:
61278 case 438:
61279 case 440:
61280 case 442:
61281 case 449:
61282 case 459:
61283 case 462:
61284 case 467:
61285 case 468:
61286 case 469:
61287 case 472:
61288 case 483:
61289 case 484:
61290 case 485:
61291 case 498:
61292 case 576:
61293 case 577:
61294 case 585:
61295 case 592:
61296 case 593:
61297 case 601:
61298 case 606:
61299 case 616:
61300 case 634:
61301 case 635:
61302 case 638:
61303 case 639:
61304 case 660:
61305 case 661:
61306 case 682:
61307 case 684:
61308 case 706:
61309 case 709:
61310 case 710:
61311 case 712:
61312 case 876:
61313 case 980:
61314 case 981:
61316 break;
61317 case 1006:
61319 break;
61320 }
61322 {
61324 }
61325 if (
type == 1006 && Main.rand.Next(8) == 0)
61326 {
61327 Dust
dust13 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(4
f, 4
f), 306,
velocity * 1.25f, 0, Main.hslToRgb(Main.rand.NextFloat(), 1
f, 0.5f), 1
f + Main.rand.NextFloat() * 0.4f);
61328 dust13.noGravity = true;
61329 dust13.fadeIn = dust13.scale + 0.05f;
61331 dust14.color = Color.White;
61332 dust14.scale -= 0.3f;
61333 }
61335 {
61339 if (
ai[1] < 110
f &&
ai[1] > 30
f)
61340 {
61348 }
61350 {
61352 }
61354 {
61358 {
61360 Main.dust[
num41].noGravity =
true;
61361 Main.dust[
num41].velocity = base.Center - Main.dust[
num41].position;
61364 obj54.velocity *= -5
f;
61367 }
61368 }
61369 }
61371 {
61373 {
61377 {
61379 Main.dust[
num43].noGravity =
true;
61380 Main.dust[
num43].velocity = base.Center - Main.dust[
num43].position;
61383 obj56.velocity *= -5
f;
61386 Main.dust[
num43].noLight =
true;
61387 }
61388 }
61390 {
61392 }
61394 {
61396 }
61399 {
61401 }
61404 {
61406 }
61409 if (Main.rand.Next(3) == 0)
61410 {
61414 Main.dust[
num44].noLight =
true;
61415 Main.dust[
num44].noGravity =
true;
61416 Main.dust[
num44].velocity.X *= 0.3f;
61417 Main.dust[
num44].velocity.Y *= 0.3f;
61418 }
61419 }
61421 {
61422 int num46 = (int)(43
f -
ai[1]) / 13;
61424 {
61426 }
61427 int num47 = ((
ai[1] < 20
f) ? 6 : 31);
61429 {
61433 Main.dust[
num49].noLight =
true;
61434 Main.dust[
num49].noGravity =
true;
61435 Main.dust[
num49].velocity.X *= 0.3f;
61436 Main.dust[
num49].velocity.Y *= 0.3f;
61438 {
61439 Main.dust[
num49].fadeIn = Main.rand.NextFloat() * 2
f;
61440 }
61441 }
61444 {
61446 return;
61447 }
61448 }
61450 {
61452 if (Main.rand.Next(3) != 0)
61453 {
61457 Main.dust[
num51].noLight =
true;
61458 Main.dust[
num51].noGravity =
true;
61459 Main.dust[
num51].velocity.X *= 0.3f;
61460 Main.dust[
num51].velocity.Y *= 0.3f;
61461 }
61464 {
61466 return;
61467 }
61468 }
61470 {
61475 {
61477 {
61480 {
61482 Main.dust[
num53].noGravity =
true;
61483 Main.dust[
num53].velocity = base.Center - Main.dust[
num53].position;
61486 obj61.velocity *= -3
f;
61489 }
61490 }
61491 else
61492 {
61495 {
61497 }
61499 {
61501 Main.dust[
num55].position =
base.Center;
61502 Main.dust[
num55].noGravity =
true;
61504 }
61505 }
61506 }
61507 }
61509 {
61511 velocity.Y += 0.2f;
61513 {
61517 {
61520 }
61521 }
61523 {
61527 {
61530 }
61531 }
61532 }
61534 {
61536 {
61539 }
61540 if (
ai[0] == 0
f ||
ai[0] == 2
f)
61541 {
61545 {
61548 }
61549 }
61550 else if (
ai[0] == 1
f)
61551 {
61555 {
61558 }
61559 }
61560 }
61562 {
61564 {
61567 }
61569 {
61572 obj63.velocity *= 0.5f;
61576 obj65.velocity *= 0.5f;
61577 Main.dust[
num58].noGravity =
true;
61578 Main.dust[
num58].scale = 1.2f;
61580 }
61581 }
61583 {
61584 Lighting.AddLight(
base.Center, 0.1f, 0.3f, 0.4f);
61585 }
61586 else if (
type == 576)
61587 {
61588 Lighting.AddLight(
base.Center, 0.4f, 0.2f, 0.4f);
61590 {
61592 obj66.velocity = Vector2.Zero;
61594 obj66.noGravity = true;
61595 obj66.scale = 0.8f;
61596 obj66.noLight = true;
61597 }
61598 }
61599 else if (
type == 581)
61600 {
61602 {
61605 }
61607 {
61608 int num61 = Utils.SelectRandom<
int>(Main.rand, 229, 161, 161);
61610 obj67.velocity = obj67.velocity / 4
f +
velocity / 2
f;
61611 obj67.noGravity = true;
61612 obj67.scale = 1.2f;
61613 obj67.position =
base.Center;
61614 obj67.noLight = true;
61615 }
61616 }
61617 else if (
type == 671)
61618 {
61620 {
61623 {
61624 int num63 = Utils.SelectRandom<
int>(Main.rand, 27, 62);
61626 obj68.velocity = (Main.rand.NextFloatDirection() * (float)
Math.PI).ToRotationVector2() * 2
f +
velocity.SafeNormalize(Vector2.Zero) * 3
f;
61627 obj68.noGravity = true;
61628 obj68.scale = 1.5f;
61629 obj68.fadeIn = 1.2f;
61630 obj68.position =
base.Center;
61631 obj68.noLight = true;
61632 }
61633 }
61636 {
61638 }
61640 {
61641 int num65 = Utils.SelectRandom<
int>(Main.rand, 27, 27, 62);
61643 obj69.velocity = obj69.velocity / 4
f +
velocity / 2
f;
61644 obj69.noGravity = true;
61645 obj69.scale = 1.2f;
61646 obj69.position =
base.Center;
61647 obj69.noLight = true;
61648 }
61649 }
61650 else if (
type == 811)
61651 {
61653 {
61657 {
61659 obj70.velocity = (Main.rand.NextFloatDirection() * (float)
Math.PI).ToRotationVector2() * 2
f +
velocity.SafeNormalize(Vector2.Zero) * 3
f;
61660 obj70.scale = 1.5f;
61661 obj70.fadeIn = 1.7f;
61662 obj70.position =
base.Center;
61663 }
61664 }
61667 {
61669 }
61671 {
61673 obj71.velocity = obj71.velocity / 4
f +
velocity / 2
f;
61674 obj71.scale = 1.2f;
61675 obj71.position = base.Center + Main.rand.NextFloat() *
velocity * 2
f;
61676 }
61677 }
61678 else if (
type == 819)
61679 {
61681 {
61684 {
61686 obj72.velocity = (Main.rand.NextFloatDirection() * (float)
Math.PI).ToRotationVector2() * 2
f +
velocity.SafeNormalize(Vector2.Zero) * 2
f;
61687 obj72.scale = 0.9f;
61688 obj72.fadeIn = 1.3f;
61689 obj72.position =
base.Center;
61690 }
61691 }
61694 {
61696 }
61698 {
61700 obj73.velocity = obj73.velocity * 0.5f +
velocity * 0.5f;
61701 obj73.velocity *= 0.25f;
61702 obj73.scale = 0.9f;
61704 }
61705 if (Main.rand.Next(2) == 0)
61706 {
61707 Dust
dust15 = Dust.NewDustPerfect(
base.Center -
velocity * 3
f, 267,
velocity * 0.5f, 0, Color.Red * (Main.rand.NextFloat() * 0.3f + 0.1f));
61708 dust15.noGravity = true;
61709 dust15.scale = 0.7f;
61710 }
61711 Lighting.AddLight(
base.Center, 0.3f, 0.05f, 0.05f);
61712 }
61713 else if (
type == 814)
61714 {
61716 {
61720 {
61722 obj74.velocity = (Main.rand.NextFloatDirection() * (float)
Math.PI).ToRotationVector2() * 2
f +
velocity.SafeNormalize(Vector2.Zero) * 2
f;
61723 obj74.scale = 0.9f;
61724 obj74.fadeIn = 1.1f;
61725 obj74.position =
base.Center;
61726 }
61727 }
61730 {
61732 }
61734 {
61736 obj75.velocity = obj75.velocity / 4
f +
velocity / 2
f;
61737 obj75.scale = 1.2f;
61738 obj75.position = base.Center + Main.rand.NextFloat() *
velocity * 2
f;
61739 }
61741 {
61742 if (Main.rand.Next(3) == 0)
61743 {
61745 obj76.velocity = obj76.velocity / 4
f +
velocity / 2
f;
61746 obj76.scale = 1.2f;
61748 }
61749 }
61750 }
61751 else if (
type == 675)
61752 {
61754 {
61757 }
61760 {
61762 }
61763 }
61764 else if (
type == 676)
61765 {
61767 {
61770 }
61773 {
61775 }
61777 {
61778 if (Main.rand.Next(5) != 0)
61779 {
61780 int num75 = Utils.SelectRandom<
int>(Main.rand, 4, 256);
61782 dust2.velocity = dust2.velocity / 4
f +
velocity / 2
f;
61783 dust2.scale = 0.8f + Main.rand.NextFloat() * 0.4f;
61784 dust2.position =
base.Center;
61785 dust2.position += Utils.RotatedBy(
new Vector2((
float)(
width * 2), 0
f), (float)
Math.PI * 2
f * Main.rand.NextFloat()) * Main.rand.NextFloat();
61786 dust2.noLight = true;
61787 if (
dust2.type == 4)
61788 {
61789 dust2.color = new Color(80, 170, 40, 120);
61790 }
61791 }
61792 }
61793 }
61794 else if (
type == 686)
61795 {
61797 {
61800 }
61802 {
61805 {
61807 }
61808 }
61809 if (Main.rand.Next(4) == 0)
61810 {
61812 dust16.scale *= 0.7f;
61814 }
61815 if (Main.rand.Next(3) == 0 &&
oldPos[9] != Vector2.Zero)
61816 {
61818 dust17.scale *= 0.85f;
61819 dust17.velocity +=
velocity * 0.85f;
61820 dust17.color = Color.Purple;
61821 }
61822 }
61823 else if (
type == 711)
61824 {
61826 {
61829 {
61831 dust18.scale *= 0.65f;
61832 dust18.velocity *= 1.5f;
61833 dust18.velocity +=
velocity * 0.3f;
61834 dust18.fadeIn = 0.7f;
61835 }
61836 }
61838 {
61841 {
61843 }
61844 }
61845 if (Main.rand.Next(4) == 0)
61846 {
61848 dust19.scale *= 0.7f;
61850 }
61851 if (Main.rand.Next(3) == 0 &&
oldPos[9] != Vector2.Zero)
61852 {
61854 dust20.scale *= 0.85f;
61855 dust20.velocity +=
velocity * 0.85f;
61856 dust20.color = Color.Purple;
61857 }
61858 }
61860 {
61862 {
61865 {
61868 obj77.velocity *= 3
f;
61870 obj78.velocity +=
velocity * 0.75f;
61871 Main.dust[
num79].scale *= 1.2f;
61872 Main.dust[
num79].noGravity =
true;
61873 }
61874 }
61877 {
61879 {
61882 obj79.velocity *= 0.6f;
61883 Main.dust[
num81].scale *= 1.4f;
61884 Main.dust[
num81].noGravity =
true;
61885 }
61886 }
61887 }
61888 else if (
type == 270 ||
type == 837)
61889 {
61891 {
61893 }
61895 {
61897 }
61899 {
61901 }
61904 {
61906 }
61908 {
61910 {
61914 Main.dust[
num83].noGravity =
true;
61915 Main.dust[
num83].velocity.X *= 0.3f;
61916 Main.dust[
num83].velocity.Y *= 0.3f;
61917 }
61918 }
61919 else
61920 {
61922 {
61926 Main.dust[
num85].noGravity =
true;
61927 Main.dust[
num85].velocity.X *= 0.3f;
61928 Main.dust[
num85].velocity.Y *= 0.3f;
61929 }
61930 }
61931 }
61933 {
61935 {
61937 }
61939 {
61941 }
61942 }
61944 {
61946 {
61948 }
61950 {
61952 }
61954 {
61956 Main.dust[
num86].noGravity =
true;
61958 obj82.velocity *= 0.3f;
61960 obj83.velocity -=
velocity * 0.4f;
61961 }
61962 }
61964 {
61966 {
61968 }
61970 {
61972 }
61974 {
61976 Main.dust[
num87].noGravity =
true;
61978 obj84.velocity *= 0.3f;
61980 obj85.velocity -=
velocity * 0.4f;
61981 }
61982 }
61983 if (
type == 981 && Main.rand.Next(6) == 0)
61984 {
61986 Main.dust[
num88].noLightEmittence =
true;
61987 Main.dust[
num88].noGravity =
true;
61989 obj86.velocity *= 0.2f;
61990 }
61992 {
61994 {
61996 {
61997 float x = position.X - velocity.X / 10
f * (float)
num90;
61998 float y = position.Y - velocity.Y / 10
f * (float)
num90;
61999 int num91 = Dust.NewDust(
new Vector2(x, y), 1, 1, 206);
62001 Main.dust[
num91].position.X = x;
62002 Main.dust[
num91].position.Y = y;
62004 obj87.velocity *= 0
f;
62005 Main.dust[
num91].noGravity =
true;
62006 }
62007 }
62009 {
62011 }
62013 {
62015 }
62016 }
62017 else if (
type == 207 ||
type == 837)
62018 {
62020 {
62022 {
62023 float x2 = position.X - velocity.X / 10
f * (float)
num92;
62024 float y2 = position.Y - velocity.Y / 10
f * (float)
num92;
62025 int num93 = Dust.NewDust(
new Vector2(
x2,
y2), 1, 1, 75);
62027 Main.dust[
num93].position.X =
x2;
62028 Main.dust[
num93].position.Y =
y2;
62030 obj88.velocity *= 0
f;
62031 Main.dust[
num93].noGravity =
true;
62032 }
62033 }
62037 {
62040 }
62042 {
62044 }
62046 {
62048 }
62052 bool flag5 =
false;
62055 {
62057 {
62058 if (Main.npc[
num101].CanBeChasedBy(
this) && (
ai[1] == 0
f ||
ai[1] == (float)(
num101 + 1)))
62059 {
62064 {
62070 }
62071 }
62072 }
62074 {
62076 }
62078 }
62080 {
62083 {
62087 {
62091 }
62092 }
62093 else
62094 {
62096 }
62097 }
62099 {
62101 }
62103 {
62105 Vector2
vector19 =
default(Vector2);
62115 {
62117 }
62120 }
62121 }
62122 else if (
type == 81 ||
type == 91)
62123 {
62125 {
62127 velocity.Y += 0.07f;
62128 }
62129 }
62131 {
62133 {
62135 velocity.Y += 0.15f;
62136 }
62137 }
62138 else if (
type == 937)
62139 {
62141 {
62143 velocity.Y += 0.07f;
62144 }
62145 }
62146 else if (
type == 962)
62147 {
62150 {
62154 {
62155 Dust
dust21 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(24
f, 24
f), 16,
velocity *
MathHelper.Lerp(0.2
f, 0.7
f, Main.rand.NextFloat()));
62156 dust21.velocity += Main.rand.NextVector2Circular(0.5
f, 0.5
f);
62157 dust21.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
62158 }
62160 {
62161 Dust
dust22 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(24
f, 24
f), 16, Main.rand.NextVector2Circular(2
f, 2
f) +
velocity *
MathHelper.Lerp(0.2
f, 0.5
f, Main.rand.NextFloat()));
62162 dust22.velocity += Main.rand.NextVector2Circular(0.5
f, 0.5
f);
62163 dust22.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
62164 dust22.fadeIn = 1
f;
62165 }
62166 }
62168 {
62169 velocity.Y += 0.15f;
62170 }
62171 }
62172 else if (
type == 337)
62173 {
62175 {
62177 }
62178 if ((double)position.Y < Main.worldSurface * 16.0)
62179 {
62181 }
62183 if (Main.rand.Next(2) == 0)
62184 {
62187 obj89.velocity *= 0.5f;
62188 Main.dust[
num116].noGravity =
true;
62189 }
62190 }
62191 else if (
type == 645)
62192 {
62194 {
62196 }
62198 {
62200 return;
62201 }
62204 dust3.position =
base.Center;
62205 dust3.velocity = Vector2.Zero;
62206 dust3.noGravity = true;
62208 {
62209 dust3.noLight = true;
62210 }
62212 {
62222 {
62224 }
62226 {
62229 }
62231 {
62233 }
62234 return;
62235 }
62238 {
62242 {
62244 if (
nPC2.CanBeChasedBy(
this))
62245 {
62248 {
62251 }
62252 }
62253 }
62255 {
62259 return;
62260 }
62261 }
62262 }
62263 else if (
type >= 424 &&
type <= 426)
62264 {
62266 {
62268 }
62269 if ((
double)
position.Y < Main.worldSurface * 16.0)
62270 {
62272 }
62278 obj90.velocity =
velocity.RotatedBy(1.5707963705062866) * 0.33f +
velocity / 4
f;
62279 obj90.position +=
velocity.RotatedBy(1.5707963705062866);
62280 obj90.fadeIn = 0.5f;
62281 obj90.noGravity = true;
62284 obj91.velocity =
velocity.RotatedBy(-1.5707963705062866) * 0.33f +
velocity / 4
f;
62285 obj91.position +=
velocity.RotatedBy(-1.5707963705062866);
62286 obj91.fadeIn = 0.5f;
62287 obj91.noGravity = true;
62289 {
62292 obj92.velocity *= 0.5f;
62293 Main.dust[
num123].scale *= 1.3f;
62294 Main.dust[
num123].fadeIn = 1
f;
62295 Main.dust[
num123].noGravity =
true;
62296 }
62297 }
62298 else if (
type == 344)
62299 {
62301 {
62303 return;
62304 }
62307 {
62310 {
62312 }
62313 }
62316 {
62317 velocity.Y += 0.15f;
62318 velocity.X *= 0.96f;
62319 }
62321 {
62323 Vector2
zero = Vector2.Zero;
62327 {
62328 Projectile projectile = Main.projectile[
num126];
62329 if (projectile.whoAmI !=
whoAmI && projectile.active && projectile.type ==
type)
62330 {
62333 {
62337 }
62338 }
62339 }
62341 {
62345 {
62347 }
62349 }
62350 }
62351 }
62352 else if (
type == 336 ||
type == 345)
62353 {
62355 {
62358 }
62360 {
62362 velocity.Y += 0.5f;
62363 }
62364 }
62365 else if (
type == 246)
62366 {
62369 {
62371 }
62373 {
62375 velocity.Y += 0.15f;
62376 }
62377 }
62378 else if (
type == 311)
62379 {
62381 {
62383 }
62385 {
62387 }
62389 {
62392 {
62394 }
62395 velocity.Y += 0.5f;
62396 }
62397 }
62398 else if (
type == 312)
62399 {
62401 {
62403 }
62405 {
62407 velocity.Y += 0.5f;
62408 }
62409 Lighting.AddLight(
base.Center, 0.6f, 0.4f, 0.3f);
62410 }
62411 else if (
type != 239 &&
type != 264)
62412 {
62414 {
62416 {
62418 velocity.Y += 0.05f;
62419 }
62420 }
62421 else if (
type == 275 ||
type == 276)
62422 {
62424 {
62426 }
62428 {
62430 }
62432 {
62434 velocity.Y += 0.025f;
62435 }
62436 if (Main.expertMode)
62437 {
62446 {
62449 }
62452 {
62454 }
62455 }
62456 }
62457 else if (
type == 172)
62458 {
62460 {
62462 velocity.Y += 0.085f;
62463 }
62464 }
62465 else if (
type == 117)
62466 {
62468 {
62470 velocity.Y += 0.06f;
62471 }
62472 }
62473 else if (
type == 120)
62474 {
62476 Main.dust[
num131].noGravity =
true;
62478 obj93.velocity *= 0.3f;
62480 {
62482 velocity.Y += 0.05f;
62483 }
62484 }
62485 else if (
type == 195)
62486 {
62489 {
62491 velocity.Y += 0.15f;
62493 }
62494 else
62495 {
62497 }
62498 }
62500 {
62503 {
62505 }
62507 {
62510 {
62511 velocity.Y += 0.075f;
62512 }
62513 }
62514 if (
type == 479 && Main.myPlayer ==
owner)
62515 {
62517 {
62519 }
62521 {
62523 }
62525 {
62527 }
62528 if (
ai[1] > (
float)Main.rand.Next(5, 30))
62529 {
62534 int num135 = Main.rand.Next(2, 4);
62535 if (Main.rand.Next(4) == 0)
62536 {
62538 }
62539 Vector2
vector26 =
default(Vector2);
62541 {
62542 ((Vector2)(
ref vector26)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
62547 NewProjectile(
GetProjectileSource_FromThis(),
base.Center.X,
base.Center.Y,
vector26.X,
vector26.Y,
type,
damage,
knockBack,
owner, 0
f, -1000
f);
62548 }
62549 }
62550 }
62551 if (
type == 478 && Main.myPlayer ==
owner)
62552 {
62554 if (
ai[1] > (
float)Main.rand.Next(5, 20))
62555 {
62557 {
62559 }
62562 }
62563 }
62564 }
62565 else if (
type == 408)
62566 {
62568 {
62570 velocity.Y += 0.05f;
62571 }
62572 }
62573 else if (
type == 616)
62574 {
62576 {
62579 {
62583 obj94.velocity *= 0
f;
62584 Main.dust[
num139].noGravity =
true;
62585 Main.dust[
num139].alpha = 200;
62586 Main.dust[
num139].scale = 0.5f;
62587 }
62588 }
62592 {
62595 }
62597 {
62599 }
62601 {
62603 }
62607 bool flag6 =
false;
62611 {
62614 {
62616 {
62617 if (Main.npc[
num147].CanBeChasedBy(
this) && (
ai[1] == 0
f ||
ai[1] == (float)(
num147 + 1)))
62618 {
62623 {
62629 }
62630 }
62631 }
62633 {
62635 }
62637 }
62639 {
62642 {
62646 {
62650 }
62651 }
62652 }
62654 {
62656 }
62658 {
62660 Vector2
vector27 =
default(Vector2);
62671 }
62672 }
62673 }
62675 {
62677 {
62678 velocity.X *= 0.98f;
62679 velocity.Y += 0.3f;
62680 }
62681 }
62682 else if (
type == 495)
62683 {
62685 Main.dust[
num159].noGravity =
true;
62687 obj95.velocity *= 0.3f;
62689 {
62691 velocity.Y += 0.04f;
62692 }
62693 }
62694 else if (
type == 498)
62695 {
62697 {
62700 }
62703 {
62704 velocity.X *= 0.98f;
62705 velocity.Y += 0.15f;
62707 }
62708 else
62709 {
62711 }
62712 }
62713 else if (
type == 437)
62714 {
62716 {
62718 {
62720 }
62722 }
62723 }
62725 {
62727 {
62729 {
62730 velocity.Y += 0.1f;
62731 }
62733 {
62734 velocity.Y += 0.1f;
62735 }
62737 {
62739 }
62740 velocity.X *= 0.99f;
62742 {
62744 }
62745 }
62746 else if (
type == 639)
62747 {
62749 {
62750 velocity.Y += 0.1f;
62751 }
62752 }
62753 else if (
type == 710)
62754 {
62756 {
62759 {
62760 velocity.Y += 0.2f;
62762 {
62763 velocity.X *= 0.98f;
62764 }
62766 {
62768 }
62769 }
62770 }
62771 }
62772 else if (
ai[0] >= 15
f)
62773 {
62776 {
62777 velocity.Y -= 0.1f;
62778 }
62779 else
62780 {
62781 velocity.Y += 0.1f;
62782 }
62783 }
62784 }
62785 }
62787 {
62789 }
62790 else if (
type == 248)
62791 {
62793 {
62795 }
62796 else
62797 {
62799 }
62800 }
62802 {
62805 {
62807 }
62808 else
62809 {
62811 }
62812 }
62813 else if (
type == 311)
62814 {
62816 {
62817 rotation += velocity.X * 0.1f + (float)Main.rand.Next(-10, 11) * 0.025f;
62818 }
62819 else
62820 {
62822 }
62823 }
62824 else if (
type == 312)
62825 {
62827 }
62828 else if (
type == 675)
62829 {
62831 }
62832 else if (
type != 676)
62833 {
62835 {
62838 {
62840 }
62841 }
62843 {
62846 {
62848 }
62849 }
62850 else if (
type == 660)
62851 {
62853 }
62854 else if (
type == 662 ||
type == 685)
62855 {
62857 }
62859 {
62861 }
62862 else if (
type == 436)
62863 {
62867 {
62869 }
62870 }
62871 else if (
type == 469)
62872 {
62874 {
62877 }
62878 else
62879 {
62882 }
62883 }
62884 else if (
type == 477)
62885 {
62887 {
62890 }
62891 else
62892 {
62894 }
62895 }
62896 else if (
type == 532)
62897 {
62899 }
62900 else if (
type == 483)
62901 {
62903 }
62904 else if (
type == 772)
62905 {
62907 }
62908 else if (
type == 485)
62909 {
62910 Vector2
vector28 =
default(Vector2);
62914 Main.dust[
num160].noGravity =
true;
62916 obj96.velocity *= 0.2f;
62920 {
62924 {
62926 }
62927 }
62929 {
62932 }
62933 else
62934 {
62937 }
62938 }
62939 else if (
type == 640)
62940 {
62942 {
62944 }
62945 }
62946 else if (
type == 325)
62947 {
62949 }
62950 else if (
type != 344 &&
type != 498)
62951 {
62953 }
62954 }
62957 {
62959 }
62961 {
62963 {
62965 }
62967 {
62969 }
62970 }
62971 }
static ? ActiveSound GetActiveSound(SlotId slotId)
static SlotId PlayTrackedSound(in SoundStyle style, Vector2? position=null)
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
bool wet
The Entity is currently in water. Projectile: Affects movement speed and some projectiles die when ...
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
float Distance(Vector2 Other)
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 Color GetPortalColor(int colorIndex)
static Color[] MagicAuraColor
The T:Microsoft.Xna.Framework.Color of the magical aura used by town NPCs with magic (3) attacks....
static readonly SoundStyle Item115
static readonly SoundStyle Item1
static readonly SoundStyle DD2_PhantomPhoenixShot
static readonly SoundStyle Item9
static readonly SoundStyle Item171
static readonly SoundStyle Item124
static readonly SoundStyle Item36
static readonly SoundStyle Item5
static readonly SoundStyle Item11
static readonly SoundStyle Item17
static readonly SoundStyle DD2_DarkMageAttack
static readonly SoundStyle Item8
static readonly SoundStyle Item33
static readonly SoundStyle Item125
static readonly SoundStyle DD2_LightningBugZap
static readonly SoundStyle Item42
static readonly SoundStyle DD2_SkyDragonsFuryShot
static readonly SoundStyle Item12
static readonly SoundStyle Item34
static readonly SoundStyle Item20
static readonly SoundStyle Item155
static readonly SoundStyle Item114
static readonly SoundStyle Item154
static readonly SoundStyle DD2_BetsyFireballShot
int maxPenetrate
How many npc can this projectile hit before dying. (Or tile bounces) Automatically set at the end o...
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
bool netUpdate
Set manually to true in M:Terraria.ModLoader.ModProjectile.AI once to make it sync its current F:Terr...
int penetrate
The remaining number of npc can this projectile hit before dying. (Or tile bounces)....
int alpha
How transparent to draw this projectile. 0 to 255. 255 is completely transparent. ExampleBulletsets...
IEntitySource GetProjectileSource_FromThis()
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
Vector2[] oldPos
Holds the value of F:Terraria.Entity.position from previous updates from newest to oldest....
float knockBack
This will always be set in Projectile.NewProjectile based on the weapons knockback and player stat mo...
bool friendly
If True, this projectile will hurt enemies (!F:Terraria.NPC.friendly) Defaults to false.
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
bool tileCollide
If true, the projectile will collide with tiles, usually bouncing or killing the tile depending on M:...
int timeLeft
Time in ticks before this projectile will naturally despawn. Each update timeLeft is decreased by 1...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
int extraUpdates
Additional update steps per tick. Useful for really fast projectiles such as Shadowbeam Staff....
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....
static int NewProjectile(IEntitySource spawnSource, Vector2 position, Vector2 velocity, int Type, int Damage, float KnockBack, int Owner=-1, float ai0=0f, float ai1=0f, float ai2=0f)
This particular overload uses a Vector2 instead of X and Y to determine the actual spawn position and...