77968 {
77969
77970
77971
77972
77973
77974
77975
77976
77977
77978
77979
77980
77981
77982
77983
77984
77985
77986
77987
77988
77989
77990
77991
77992
77993
77994
77995
77996
77997
77998
77999
78000
78001
78002
78003
78004
78005
78006
78007
78008
78009
78010
78011
78012
78013
78014
78015
78016
78017
78018
78019
78020
78021
78022
78023
78024
78025
78026
78027
78028
78029
78030
78031
78032
78033
78034
78035
78036
78037
78038
78039
78040
78041
78042
78043
78044
78045
78046
78047
78048
78049
78050
78051
78052
78053
78054
78055
78056
78057
78058
78059
78060
78061
78062
78063
78064
78065
78066
78067
78068
78069
78070
78071
78072
78073
78074
78075
78076
78077
78078
78079
78080
78081
78082
78083
78084
78085
78086
78087
78088
78089
78090
78091
78092
78093
78094
78095
78096
78097
78098
78099
78100
78101
78102
78103
78104
78105
78106
78107
78108
78109
78110
78111
78112
78113
78114
78115
78116
78117
78118
78119
78120
78121
78122
78123
78124
78125
78126
78127
78128
78129
78130
78131
78132
78133
78134
78135
78136
78137
78138
78139
78140
78141
78142
78143
78144
78145
78146
78147
78148
78149
78150
78151
78152
78153
78154
78155
78156
78157
78158
78159
78160
78161
78162
78163
78164
78165
78166
78167
78168
78169
78170
78171
78172
78173
78174
78175
78176
78177
78178
78179
78180
78181
78182
78183
78184
78185
78186
78187
78188
78189
78190
78191
78192
78193
78194
78195
78196
78197
78198
78199
78200
78201
78202
78203
78204
78205
78206
78207
78208
78209
78210
78211
78212
78213
78214
78215
78216
78217
78218
78219
78220
78221
78222
78223
78224
78225
78226
78227
78228
78229
78230
78231
78232
78233
78234
78235
78236
78237
78238
78239
78240
78241
78242
78243
78244
78245
78246
78247
78248
78249
78250
78251
78252
78253
78254
78255
78256
78257
78258
78259
78260
78261
78262
78263
78264
78265
78266
78267
78268
78269
78270
78271
78272
78273
78274
78275
78276
78277
78278
78279
78280
78281
78282
78283
78284
78285
78286
78287
78288
78289
78290
78291
78292
78293
78294
78295
78296
78297
78298
78299
78300
78301
78302
78303
78304
78305
78306
78307
78308
78309
78310
78311
78312
78313
78314
78315
78316
78317
78318
78319
78320
78321
78322
78323
78324
78325
78326
78327
78328
78329
78330
78331
78332
78333
78334
78335
78336
78337
78338
78339
78340
78341
78342
78343
78344
78345
78346
78347
78348
78349
78350
78351
78352
78353
78354
78355
78356
78357
78358
78359
78360
78361
78362
78363
78364
78365
78366
78367
78368
78369
78370
78371
78372
78373
78374
78375
78376
78377
78378
78379
78380
78381
78382
78383
78384
78385
78386
78387
78388
78389
78390
78391
78392
78393
78394
78395
78396
78397
78398
78399
78400
78401
78402
78403
78404
78405
78406
78407
78408
78409
78410
78411
78412
78413
78414
78415
78416
78417
78418
78419
78420
78421
78422
78423
78424
78425
78426
78427
78428
78429
78430
78431
78432
78433
78434
78435
78436
78437
78438
78439
78440
78441
78442
78443
78444
78445
78446
78447
78448
78449
78450
78451
78452
78453
78454
78455
78456
78457
78458
78459
78460
78461
78462
78463
78464
78465
78466
78467
78468
78469
78470
78471
78472
78473
78474
78475
78476
78477
78478
78479
78480
78481
78482
78483
78484
78485
78486
78487
78488
78489
78490
78491
78492
78493
78494
78495
78496
78497
78498
78499
78500
78501
78502
78503
78504
78505
78506
78507
78508
78509
78510
78511
78512
78513
78514
78515
78516
78517
78518
78519
78520
78521
78522
78523
78524
78525
78526
78527
78528
78529
78530
78531
78532
78533
78534
78535
78536
78537
78538
78539
78540
78541
78542
78543
78544
78545
78546
78547
78548
78549
78550
78551
78552
78553
78554
78555
78556
78557
78558
78559
78560
78561
78562
78563
78564
78565
78566
78567
78568
78569
78570
78571
78572
78573
78574
78575
78576
78577
78578
78579
78580
78581
78582
78583
78584
78585
78586
78587
78588
78589
78590
78591
78592
78593
78594
78595
78596
78597
78598
78599
78600
78601
78602
78603
78604
78605
78606
78607
78608
78609
78610
78611
78612
78613
78614
78615
78616
78617
78618
78619
78620
78621
78622
78623
78624
78625
78626
78627
78628
78629
78630
78631
78632
78633
78634
78635
78636
78637
78638
78639
78640
78641
78642
78643
78644
78645
78646
78647
78648
78649
78650
78651
78652
78653
78654
78655
78656
78657
78658
78659
78660
78661
78662
78663
78664
78665
78666
78667
78668
78669
78670
78671
78672
78673
78674
78675
78676
78677
78678
78679
78680
78681
78682
78683
78684
78685
78686
78687
78688
78689
78690
78691
78692
78693
78694
78695
78696
78697
78698
78699
78700
78701
78702
78703
78704
78705
78706
78707
78708
78709
78710
78711
78712
78713
78714
78715
78716
78717
78718
78719
78720
78721
78722
78723
78724
78725
78726
78727
78728
78729
78730
78731
78732
78733
78734
78735
78736
78737
78738
78739
78740
78741
78742
78743
78744
78745
78746
78747
78748
78749
78750
78751
78752
78753
78754
78755
78756
78757
78758
78759
78760
78761
78762
78763
78764
78765
78766
78767
78768
78769
78770
78771
78772
78773
78774
78775
78776
78777
78778
78779
78780
78781
78782
78783
78784
78785
78786
78787
78788
78789
78790
78791
78792
78793
78794
78795
78796
78797
78798
78799
78800
78801
78802
78803
78804
78805
78806
78807
78808
78809
78810
78811
78812
78813
78814
78815
78816
78817
78818
78819
78820
78821
78822
78823
78824
78825
78826
78827
78828
78829
78830
78831
78832
78833
78834
78835
78836
78837
78838
78839
78840
78841
78842
78843
78844
78845
78846
78847
78848
78849
78850
78851
78852
78853
78854
78855
78856
78857
78858
78859
78860
78861
78862
78863
78864
78865
78866
78867
78868
78869
78870
78871
78872
78873
78874
78875
78876
78877
78878
78879
78880
78881
78882
78883
78884
78885
78886
78887
78888
78889
78890
78891
78892
78893
78894
78895
78896
78897
78898
78899
78900
78901
78902
78903
78904
78905
78906
78907
78908
78909
78910
78911
78912
78913
78914
78915
78916
78917
78918
78919
78920
78921
78922
78923
78924
78925
78926
78927
78928
78929
78930
78931
78932
78933
78934
78935
78936
78937
78938
78939
78940
78941
78942
78943
78944
78945
78946
78947
78948
78949
78950
78951
78952
78953
78954
78955
78956
78957
78958
78959
78960
78961
78962
78963
78964
78965
78966
78967
78968
78969
78970
78971
78972
78973
78974
78975
78976
78977
78978
78979
78980
78981
78982
78983
78984
78985
78986
78987
78988
78989
78990
78991
78992
78993
78994
78995
78996
78997
78998
78999
79000
79001
79002
79003
79004
79005
79006
79007
79008
79009
79010
79011
79012
79013
79014
79015
79016
79017
79018
79019
79020
79021
79022
79023
79024
79025
79026
79027
79028
79029
79030
79031
79032
79033
79034
79035
79036
79037
79038
79039
79040
79041
79042
79043
79044
79045
79046
79047
79048
79049
79050
79051
79052
79053
79054
79055
79056
79057
79058
79059
79060
79061
79062
79063
79064
79065
79066
79067
79068
79069
79070
79071
79072
79073
79074
79075
79076
79077
79078
79079
79080
79081
79082
79083
79084
79085
79086
79087
79088
79089
79090
79091
79092
79093
79094
79095
79096
79097
79098
79099
79100
79101
79102
79103
79104
79105
79106
79107
79108
79109
79110
79111
79112
79113
79114
79115
79116
79117
79118
79119
79120
79121
79122
79123
79124
79125
79126
79127
79128
79129
79130
79131
79132
79133
79134
79135
79136
79137
79138
79139
79140
79141
79142
79143
79144
79145
79146
79147
79148
79149
79150
79151
79152
79153
79154
79155
79156
79157
79158
79159
79160
79161
79162
79163
79164
79165
79166
79167
79168
79169
79170
79171
79172
79173
79174
79175
79176
79177
79178
79179
79180
79181
79182
79183
79184
79185
79186
79187
79188
79189
79190
79191
79192
79193
79194
79195
79196
79197
79198
79199
79200
79201
79202
79203
79204
79205
79206
79207
79208
79209
79210
79211
79212
79213
79214
79215
79216
79217
79218
79219
79220
79221
79222
79223
79224
79225
79226
79227
79228
79229
79230
79231
79232
79233
79234
79235
79236
79237
79238
79239
79240
79241
79242
79243
79244
79245
79246
79247
79248
79249
79250
79251
79252
79253
79254
79255
79256
79257
79258
79259
79260
79261
79262
79263
79264
79265
79266
79267
79268
79269
79270
79271
79272
79273
79274
79275
79276
79277
79278
79279
79280
79281
79282
79283
79284
79285
79286
79287
79288
79289
79290
79291
79292
79293
79294
79295
79296
79297
79298
79299
79300
79301
79302
79303
79304
79305
79306
79307
79308
79309
79310
79311
79312
79313
79314
79315
79316
79317
79318
79319
79320
79321
79322
79323
79324
79325
79326
79327
79328
79329
79330
79331
79332
79333
79334
79335
79336
79337
79338
79339
79340
79341
79342
79343
79344
79345
79346
79347
79348
79349
79350
79351
79352
79353
79354
79355
79356
79357
79358
79359
79360
79361
79362
79363
79364
79365
79366
79367
79368
79369
79370
79371
79372
79373
79374
79375
79376
79377
79378
79379
79380
79381
79382
79383
79384
79385
79386
79387
79388
79389
79390
79391
79392
79393
79394
79395
79396
79397
79398
79399
79400
79401
79402
79403
79404
79405
79406
79407
79408
79409
79410
79411
79412
79413
79414
79415
79416
79417
79418
79419
79420
79421
79422
79423
79424
79425
79426
79427
79428
79429
79430
79431
79432
79433
79434
79435
79436
79437
79438
79439
79440
79441
79442
79443
79444
79445
79446
79447
79448
79449
79450
79451
79452
79453
79454
79455
79456
79457
79458
79459
79460
79461
79462
79463
79464
79465
79466
79467
79468
79469
79470
79471
79472
79473
79474
79475
79476
79477
79478
79479
79480
79481
79482
79483
79484
79485
79486
79487
79488
79489
79490
79491
79492
79493
79494
79495
79496
79497
79498
79499
79500
79501
79502
79503
79504
79505
79506
79507
79508
79509
79510
79511
79512
79513
79514
79515
79516
79517
79518
79519
79520
79521
79522
79523
79524
79525
79526
79527
79528
79529
79530
79531
79532
79533
79534
79535
79536
79537
79538
79539
79540
79541
79542
79543
79544
79545
79546
79547
79548
79549
79550
79551
79552
79553
79554
79555
79556
79557
79558
79559
79560
79561
79562
79563
79564
79565
79566
79567
79568
79569
79570
79571
79572
79573
79574
79575
79576
79577
79578
79579
79580
79581
79582
79583
79584
79585
79586
79587
79588
79589
79590
79591
79592
79593
79594
79595
79596
79597
79598
79599
79600
79601
79602
79603
79604
79605
79606
79607
79608
79609
79610
79611
79612
79613
79614
79615
79616
79617
79618
79619
79620
79621
79622
79623
79624
79625
79626
79627
79628
79629
79630
79631
79632
79633
79634
79635
79636
79637
79638
79639
79640
79641
79642
79643
79644
79645
79646
79647
79648
79649
79650
79651
79652
79653
79654
79655
79656
79657
79658
79659
79660
79661
79662
79663
79664
79665
79666
79667
79668
79669
79670
79671
79672
79673
79674
79675
79676
79677
79678
79679
79680
79681
79682
79683
79684
79685
79686
79687
79688
79689
79690
79691
79692
79693
79694
79695
79696
79697
79698
79699
79700
79701
79702
79703
79704
79705
79706
79707
79708
79709
79710
79711
79712
79713
79714
79715
79716
79717
79718
79719
79720
79721
79722
79723
79724
79725
79726
79727
79728
79729
79730
79731
79732
79733
79734
79735
79736
79737
79738
79739
79740
79741
79742
79743
79744
79745
79746
79747
79748
79749
79750
79751
79752
79753
79754
79755
79756
79757
79758
79759
79760
79761
79762
79763
79764
79765
79766
79767
79768
79769
79770
79771
79772
79773
79774
79775
79776
79777
79778
79779
79780
79781
79782
79783
79784
79785
79786
79787
79788
79789
79790
79791
79792
79793
79794
79795
79796
79797
79798
79799
79800
79801
79802
79803
79804
79805
79806
79807
79808
79809
79810
79811
79812
79813
79814
79815
79816
79817
79818
79819
79820
79821
79822
79823
79824
79825
79826
79827
79828
79829
79830
79831
79832
79833
79834
79835
79836
79837
79838
79839
79840
79841
79842
79843
79844
79845
79846
79847
79848
79849
79850
79851
79852
79853
79854
79855
79856
79857
79858
79859
79860
79861
79862
79863
79864
79865
79866
79867
79868
79869
79870
79871
79872
79873
79874
79875
79876
79877
79878
79879
79880
79881
79882
79883
79884
79885
79886
79887
79888
79889
79890
79891
79892
79893
79894
79895
79896
79897
79898
79899
79900
79901
79902
79903
79904
79905
79906
79907
79908
79909
79910
79911
79912
79913
79914
79915
79916
79917
79918
79919
79920
79921
79922
79923
79924
79925
79926
79927
79928
79929
79930
79931
79932
79933
79934
79935
79936
79937
79938
79939
79940
79941
79942
79943
79944
79945
79946
79947
79948
79949
79950
79951
79952
79953
79954
79955
79956
79957
79958
79959
79960
79961
79962
79963
79964
79965
79966
79967
79968
79969
79970
79971
79972
79973
79974
79975
79976
79977
79978
79979
79980
79981
79982
79983
79984
79985
79986
79987
79988
79989
79990
79991
79992
79993
79994
79995
79996
79997
79998
79999
80000
80001
80002
80003
80004
80005
80006
80007
80008
80009
80010
80011
80012
80013
80014
80015
80016
80017
80018
80019
80020
80021
80022
80023
80024
80025
80026
80027
80028
80029
80030
80031
80032
80033
80034
80035
80036
80037
80038
80039
80040
80041
80042
80043
80044
80045
80046
80047
80048
80049
80050
80051
80052
80053
80054
80055
80056
80057
80058
80059
80060
80061
80062
80063
80064
80065
80066
80067
80068
80069
80070
80071
80072
80073
80074
80075
80076
80077
80078
80079
80080
80081
80082
80083
80084
80085
80086
80087
80088
80089
80090
80091
80092
80093
80094
80095
80096
80097
80098
80099
80100
80101
80102
80103
80104
80105
80106
80107
80108
80109
80110
80111
80112
80113
80114
80115
80116
80117
80118
80119
80120
80121
80122
80123
80124
80125
80126
80127
80128
80129
80130
80131
80132
80133
80134
80135
80136
80137
80138
80139
80140
80141
80142
80143
80144
80145
80146
80147
80148
80149
80150
80151
80152
80153
80154
80155
80156
80157
80158
80159
80160
80161
80162
80163
80164
80165
80166
80167
80168
80169
80170
80171
80172
80173
80174
80175
80176
80177
80178
80179
80180
80181
80182
80183
80184
80185
80186
80187
80188
80189
80190
80191
80192
80193
80194
80195
80196
80197
80198
80199
80200
80201
80202
80203
80204
80205
80206
80207
80208
80209
80210
80211
80212
80213
80214
80215
80216
80217
80218
80219
80220
80221
80222
80223
80224
80225
80226
80227
80228
80229
80230
80231
80232
80233
80234
80235
80236
80237
80238
80239
80240
80241
80242
80243
80244
80245
80246
80247
80248
80249
80250
80251
80252
80253
80254
80255
80256
80257
80258
80259
80260
80261
80262
80263
80264
80265
80266
80267
80268
80269
80270
80271
80272
80273
80274
80275
80276
80277
80278
80279
80280
80281
80282
80283
80284
80285
80286
80287
80288
80289
80290
80291
80292
80293
80294
80295
80296
80297
80298
80299
80300
80301
80302
80303
80304
80305
80306
80307
80308
80309
80310
80311
80312
80313
80314
80315
80316
80317
80318
80319
80320
80321
80322
80323
80324
80325
80326
80327
80328
80329
80330
80331
80332
80333
80334
80335
80336
80337
80338
80339
80340
80341
80342
80343
80344
80345
80346
80347
80348
80349
80350
80351
80352
80353
80354
80355
80356
80357
80358
80359
80360
80361
80362
80363
80364
80365
80366
80367
80368
80369
80370
80371
80372
80373
80374
80375
80376
80377
80378
80379
80380
80381
80382
80383
80384
80385
80386
80387
80388
80389
80390
80391
80392
80393
80394
80395
80396
80397
80398
80399
80400
80401
80402
80403
80404
80405
80406
80407
80408
80409
80410
80411
80412
80413
80414
80415
80416
80417
80418
80419
80420
80421
80422
80423
80424
80425
80426
80427
80428
80429
80430
80431
80432
80433
80434
80435
80436
80437
80438
80439
80440
80441
80442
80443
80444
80445
80446
80447
80448
80449
80450
80451
80452
80453
80454
80455
80456
80457
80458
80459
80460
80461
80462
80463
80464
80465
80466
80467
80468
80469
80470
80471
80472
80473
80474
80475
80476
80477
80478
80479
80480
80481
80482
80483
80484
80485
80486
80487
80488
80489
80490
80491
80492
80493
80494
80495
80496
80497
80498
80499
80500
80501
80502
80503
80504
80505
80506
80507
80508
80509
80510
80511
80512
80513
80514
80515
80516
80517
80518
80519
80520
80521
80522
80523
80524
80525
80526
80527
80528
80529
80530
80531
80532
80533
80534
80535
80536
80537
80538
80539
80540
80541
80542
80543
80544
80545
80546
80547
80548
80549
80550
80551
80552
80553
80554
80555
80556
80557
80558
80559
80560
80561
80562
80563
80564
80565
80566
80567
80568
80569
80570
80571
80572
80573
80574
80575
80576
80577
80578
80579
80580
80581
80582
80583
80584
80585
80586
80587
80588
80589
80590
80591
80592
80593
80594
80595
80596
80597
80598
80599
80600
80601
80602
80603
80604
80605
80606
80607
80608
80609
80610
80611
80612
80613
80614
80615
80616
80617
80618
80619
80620
80621
80622
80623
80624
80625
80626
80627
80628
80629
80630
80631
80632
80633
80634
80635
80636
80637
80638
80639
80640
80641
80642
80643
80644
80645
80646
80647
80648
80649
80650
80651
80652
80653
80654
80655
80656
80657
80658
80659
80660
80661
80662
80663
80664
80665
80666
80667
80668
80669
80670
80671
80672
80673
80674
80675
80676
80677
80678
80679
80680
80681
80682
80683
80684
80685
80686
80687
80688
80689
80690
80691
80692
80693
80694
80695
80696
80697
80698
80699
80700
80701
80702
80703
80704
80705
80706
80707
80708
80709
80710
80711
80712
80713
80714
80715
80716
80717
80718
80719
80720
80721
80722
80723
80724
80725
80726
80727
80728
80729
80730
80731
80732
80733
80734
80735
80736
80737
80738
80739
80740
80741
80742
80743
80744
80745
80746
80747
80748
80749
80750
80751
80752
80753
80754
80755
80756
80757
80758
80759
80760
80761
80762
80763
80764
80765
80766
80767
80768
80769
80770
80771
80772
80773
80774
80775
80776
80777
80778
80779
80780
80781
80782
80783
80784
80785
80786
80787
80788
80789
80790
80791
80792
80793
80794
80795
80796
80797
80798
80799
80800
80801
80802
80803
80804
80805
80806
80807
80808
80809
80810
80811
80812
80813
80814
80815
80816
80817
80818
80819
80820
80821
80822
80823
80824
80825
80826
80827
80828
80829
80830
80831
80832
80833
80834
80835
80836
80837
80838
80839
80840
80841
80842
80843
80844
80845
80846
80847
80848
80849
80850
80851
80852
80853
80854
80855
80856
80857
80858
80859
80860
80861
80862
80863
80864
80865
80866
80867
80868
80869
80870
80871
80872
80873
80874
80875
80876
80877
80878
80879
80880
80881
80882
80883
80884
80885
80886
80887
80888
80889
80890
80891
80892
80893
80894
80895
80896
80897
80898
80899
80900
80901
80902
80903
80904
80905
80906
80907
80908
80909
80910
80911
80912
80913
80914
80915
80916
80917
80918
80919
80920
80921
80922
80923
80924
80925
80926
80927
80928
80929
80930
80931
80932
80933
80934
80935
80936
80937
80938
80939
80940
80941
80942
80943
80944
80945
80946
80947
80948
80949
80950
80951
80952
80953
80954
80955
80956
80957
80958
80959
80960
80961
80962
80963
80964
80965
80966
80967
80968
80969
80970
80971
80972
80973
80974
80975
80976
80977
80978
80979
80980
80981
80982
80983
80984
80985
80986
80987
80988
80989
80990
80991
80992
80993
80994
80995
80996
80997
80998
80999
81000
81001
81002
81003
81004
81005
81006
81007
81008
81009
81010
81011
81012
81013
81014
81015
81016
81017
81018
81019
81020
81021
81022
81023
81024
81025
81026
81027
81028
81029
81030
81031
81032
81033
81034
81035
81036
81037
81038
81039
81040
81041
81042
81043
81044
81045
81046
81047
81048
81049
81050
81051
81052
81053
81054
81055
81056
81057
81058
81059
81060
81061
81062
81063
81064
81065
81066
81067
81068
81069
81070
81071
81072
81073
81074
81075
81076
81077
81078
81079
81080
81081
81082
81083
81084
81085
81086
81087
81088
81089
81090
81091
81092
81093
81094
81095
81096
81097
81098
81099
81100
81101
81102
81103
81104
81105
81106
81107
81108
81109
81110
81111
81112
81113
81114
81115
81116
81117
81118
81119
81120
81121
81122
81123
81124
81125
81126
81127
81128
81129
81130
81131
81132
81133
81134
81135
81136
81137
81138
81139
81140
81141
81142
81143
81144
81145
81146
81147
81148
81149
81150
81151
81152
81153
81154
81155
81156
81157
81158
81159
81160
81161
81162
81163
81164
81165
81166
81167
81168
81169
81170
81171
81172
81173
81174
81175
81176
81177
81178
81179
81180
81181
81182
81183
81184
81185
81186
81187
81188
81189
81190
81191
81192
81193
81194
81195
81196
81197
81198
81199
81200
81201
81202
81203
81204
81205
81206
81207
81208
81209
81210
81211
81212
81213
81214
81215
81216
81217
81218
81219
81220
81221
81222
81223
81224
81225
81226
81227
81228
81229
81230
81231
81232
81233
81234
81235
81236
81237
81238
81239
81240
81241
81242
81243
81244
81245
81246
81247
81248
81249
81250
81251
81252
81253
81254
81255
81256
81257
81258
81259
81260
81261
81262
81263
81264
81265
81266
81267
81268
81269
81270
81271
81272
81273
81274
81275
81276
81277
81278
81279
81280
81281
81282
81283
81284
81285
81286
81287
81288
81289
81290
81291
81292
81293
81294
81295
81296
81297
81298
81299
81300
81301
81302
81303
81304
81305
81306
81307
81308
81309
81310
81311
81312
81313
81314
81315
81316
81317
81318
81319
81320
81321
81322
81323
81324
81325
81326
81327
81328
81329
81330
81331
81332
81333
81334
81335
81336
81337
81338
81339
81340
81341
81342
81343
81344
81345
81346
81347
81348
81349
81350
81351
81352
81353
81354
81355
81356
81357
81358
81359
81360
81361
81362
81363
81364
81365
81366
81367
81368
81369
81370
81371
81372
81373
81374
81375
81376
81377
81378
81379
81380
81381
81382
81383
81384
81385
81386
81387
81388
81389
81390
81391
81392
81393
81394
81395
81396
81397
81398
81399
81400
81401
81402
81403
81404
81405
81406
81407
81408
81409
81410
81411
81412
81413
81414
81415
81416
81417
81418
81419
81420
81421
81422
81423
81424
81425
81426
81427
81428
81429
81430
81431
81432
81433
81434
81435
81436
81437
81438
81439
81440
81441
81442
81443
81444
81445
81446
81447
81448
81449
81450
81451
81452
81453
81454
81455
81456
81457
81458
81459
81460
81461
81462
81463
81464
81465
81466
81467
81468
81469
81470
81471
81472
81473
81474
81475
81476
81477
81478
81479
81480
81481
81482
81483
81484
81485
81486
81487
81488
81489
81490
81491
81492
81493
81494
81495
81496
81497
81498
81499
81500
81501
81502
81503
81504
81505
81506
81507
81508
81509
81510
81511
81512
81513
81514
81515
81516
81517
81518
81519
81520
81521
81522
81523
81524
81525
81526
81527
81528
81529
81530
81531
81532
81533
81534
81535
81536
81537
81538
81539
81540
81541
81542
81543
81544
81545
81546
81547
81548
81549
81550
81551
81552
81553
81554
81555
81556
81557
81558
81559
81560
81561
81562
81563
81564
81565
81566
81567
81568
81569
81570
81571
81572
81573
81574
81575
81576
81577
81578
81579
81580
81581
81582
81583
81584
81585
81586
81587
81588
81589
81590
81591
81592
81593
81594
81595
81596
81597
81598
81599
81600
81601
81602
81603
81604
81605
81606
81607
81608
81609
81610
81611
81612
81613
81614
81615
81616
81617
81618
81619
81620
81621
81622
81623
81624
81625
81626
81627
81628
81629
81630
81631
81632
81633
81634
81635
81636
81637
81638
81639
81640
81641
81642
81643
81644
81645
81646
81647
81648
81649
81650
81651
81652
81653
81654
81655
81656
81657
81658
81659
81660
81661
81662
81663
81664
81665
81666
81667
81668
81669
81670
81671
81672
81673
81674
81675
81676
81677
81678
81679
81680
81681
81682
81683
81684
81685
81686
81687
81688
81689
81690
81691
81692
81693
81694
81695
81696
81697
81698
81699
81700
81701
81702
81703
81704
81705
81706
81707
81708
81709
81710
81711
81712
81713
81714
81715
81716
81717
81718
81719
81720
81721
81722
81723
81724
81725
81726
81727
81728
81729
81730
81731
81732
81733
81734
81735
81736
81737
81738
81739
81740
81741
81742
81743
81744
81745
81746
81747
81748
81749
81750
81751
81752
81753
81754
81755
81756
81757
81758
81759
81760
81761
81762
81763
81764
81765
81766
81767
81768
81769
81770
81771
81772
81773
81774
81775
81776
81777
81778
81779
81780
81781
81782
81783
81784
81785
81786
81787
81788
81789
81790
81791
81792
81793
81794
81795
81796
81797
81798
81799
81800
81801
81802
81803
81804
81805
81806
81807
81808
81809
81810
81811
81812
81813
81814
81815
81816
81817
81818
81819
81820
81821
81822
81823
81824
81825
81826
81827
81828
81829
81830
81831
81832
81833
81834
81835
81836
81837
81838
81839
81840
81841
81842
81843
81844
81845
81846
81847
81848
81849
81850
81851
81852
81853
81854
81855
81856
81857
81858
81859
81860
81861
81862
81863
81864
81865
81866
81867
81868
81869
81870
81871
81872
81873
81874
81875
81876
81877
81878
81879
81880
81881
81882
81883
81884
81885
81886
81887
81888
81889
81890
81891
81892
81893
81894
81895
81896
81897
81898
81899
81900
81901
81902
81903
81904
81905
81906
81907
81908
81909
81910
81911
81912
81913
81914
81915
81916
81917
81918
81919
81920
81921
81922
81923
81924
81925
81926
81927
81928
81929
81930
81931
81932
81933
81934
81935
81936
81937
81938
81939
81940
81941
81942
81943
81944
81945
81946
81947
81948
81949
81950
81951
81952
81953
81954
81955
81956
81957
81958
81959
81960
81961
81962
81963
81964
81965
81966
81967
81968
81969
81970
81971
81972
81973
81974
81975
81976
81977
81978
81979
81980
81981
81982
81983
81984
81985
81986
81987
81988
81989
81990
81991
81992
81993
81994
81995
81996
81997
81998
81999
82000
82001
82002
82003
82004
82005
82006
82007
82008
82009
82010
82011
82012
82013
82014
82015
82016
82017
82018
82019
82020
82021
82022
82023
82024
82025
82026
82027
82028
82029
82030
82031
82032
82033
82034
82035
82036
82037
82038
82039
82040
82041
82042
82043
82044
82045
82046
82047
82048
82049
82050
82051
82052
82053
82054
82055
82056
82057
82058
82059
82060
82061
82062
82063
82064
82065
82066
82067
82068
82069
82070
82071
82072
82073
82074
82075
82076
82077
82078
82079
82080
82081
82082
82083
82084
82085
82086
82087
82088
82089
82090
82091
82092
82093
82094
82095
82096
82097
82098
82099
82100
82101
82102
82103
82104
82105
82106
82107
82108
82109
82110
82111
82112
82113
82114
82115
82116
82117
82118
82119
82120
82121
82122
82123
82124
82125
82126
82127
82128
82129
82130
82131
82132
82133
82134
82135
82136
82137
82138
82139
82140
82141
82142
82143
82144
82145
82146
82147
82148
82149
82150
82151
82152
82153
82154
82155
82156
82157
82158
82159
82160
82161
82162
82163
82164
82165
82166
82167
82168
82169
82170
82171
82172
82173
82174
82175
82176
82177
82178
82179
82180
82181
82182
82183
82184
82185
82186
82187
82188
82189
82190
82191
82192
82193
82194
82195
82196
82197
82198
82199
82200
82201
82202
82203
82204
82205
82206
82207
82208
82209
82210
82211
82212
82213
82214
82215
82216
82217
82218
82219
82220
82221
82222
82223
82224
82225
82226
82227
82228
82229
82230
82231
82232
82233
82234
82235
82236
82237
82238
82239
82240
82241
82242
82243
82244
82245
82246
82247
82248
82249
82250
82251
82252
82253
82254
82255
82256
82257
82258
82259
82260
82261
82262
82263
82264
82265
82266
82267
82268
82269
82270
82271
82272
82273
82274
82275
82276
82277
82278
82279
82280
82281
82282
82283
82284
82285
82286
82287
82288
82289
82290
82291
82292
82293
82294
82295
82296
82297
82298
82299
82300
82301
82302
82303
82304
82305
82306
82307
82308
82309
82310
82311
82312
82313
82314
82315
82316
82317
82318
82319
82320
82321
82322
82323
82324
82325
82326
82327
82328
82329
82330
82331
82332
82333
82334
82335
82336
82337
82338
82339
82340
82341
82342
82343
82344
82345
82346
82347
82348
82349
82350
82351
82352
82353
82354
82355
82356
82357
82358
82359
82360
82361
82362
82363
82364
82365
82366
82367
82368
82369
82370
82371
82372
82373
82374
82375
82376
82377
82378
82379
82380
82381
82382
82383
82384
82385
82386
82387
82388
82389
82390
82391
82392
82393
82394
82395
82396
82397
82398
82399
82400
82401
82402
82403
82404
82405
82406
82407
82408
82409
82410
82411
82412
82413
82414
82415
82416
82417
82418
82419
82420
82421
82422
82423
82424
82425
82426
82427
82428
82429
82430
82431
82432
82433
82434
82435
82436
82437
82438
82439
82440
82441
82442
82443
82444
82445
82446
82447
82448
82449
82450
82451
82452
82453
82454
82455
82456
82457
82458
82459
82460
82461
82462
82463
82464
82465
82466
82467
82468
82469
82470
82471
82472
82473
82474
82475
82476
82477
82478
82479
82480
82481
82482
82483
82484
82485
82486
82487
82488
82489
82490
82491
82492
82493
82494
82495
82496
82497
82498
82499
82500
82501
82502
82503
82504
82505
82506
82507
82508
82509
82510
82511
82512
82513
82514
82515
82516
82517
82518
82519
82520
82521
82522
82523
82524
82525
82526
82527
82528
82529
82530
82531
82532
82533
82534
82535
82536
82537
82538
82539
82540
82541
82542
82543
82544
82545
82546
82547
82548
82549
82550
82551
82552
82553
82554
82555
82556
82557
82558
82559
82560
82561
82562
82563
82564
82565
82566
82567
82568
82569
82570
82571
82572
82573
82574
82575
82576
82577
82578
82579
82580
82581
82582
82583
82584
82585
82586
82587
82588
82589
82590
82591
82592
82593
82594
82595
82596
82597
82598
82599
82600
82601
82602
82603
82604
82605
82606
82607
82608
82609
82610
82611
82612
82613
82614
82615
82616
82617
82618
82619
82620
82621
82622
82623
82624
82625
82626
82627
82628
82629
82630
82631
82632
82633
82634
82635
82636
82637
82638
82639
82640
82641
82642
82643
82644
82645
82646
82647
82648
82649
82650
82651
82652
82653
82654
82655
82656
82657
82658
82659
82660
82661
82662
82663
82664
82665
82666
82667
82668
82669
82670
82671
82672
82673
82674
82675
82676
82677
82678
82679
82680
82681
82682
82683
82684
82685
82686
82687
82688
82689
82690
82691
82692
82693
82694
82695
82696
82697
82698
82699
82700
82701
82702
82703
82704
82705
82706
82707
82708
82709
82710
82711
82712
82713
82714
82715
82716
82717
82718
82719
82720
82721
82722
82723
82724
82725
82726
82727
82728
82729
82730
82731
82732
82733
82734
82735
82736
82737
82738
82739
82740
82741
82742
82743
82744
82745
82746
82747
82748
82749
82750
82751
82752
82753
82754
82755
82756
82757
82758
82759
82760
82761
82762
82763
82764
82765
82766
82767
82768
82769
82770
82771
82772
82773
82774
82775
82776
82777
82778
82779
82780
82781
82782
82783
82784
82785
82786
82787
82788
82789
82790
82791
82792
82793
82794
82795
82796
82797
82798
82799
82800
82801
82802
82803
82804
82805
82806
82807
82808
82809
82810
82811
82812
82813
82814
82815
82816
82817
82818
82819
82820
82821
82822
82823
82824
82825
82826
82827
82828
82829
82830
82831
82832
82833
82834
82835
82836
82837
82838
82839
82840
82841
82842
82843
82844
82845
82846
82847
82848
82849
82850
82851
82852
82853
82854
82855
82856
82857
82858
82859
82860
82861
82862
82863
82864
82865
82866
82867
82868
82869
82870
82871
82872
82873
82874
82875
82876
82877
82878
82879
82880
82881
82882
82883
82884
82885
82886
82887
82888
82889
82890
82891
82892
82893
82894
82895
82896
82897
82898
82899
82900
82901
82902
82903
82904
82905
82906
82907
82908
82909
82910
82911
82912
82913
82914
82915
82916
82917
82918
82919
82920
82921
82922
82923
82924
82925
82926
82927
82928
82929
82930
82931
82932
82933
82934
82935
82936
82937
82938
82939
82940
82941
82942
82943
82944
82945
82946
82947
82948
82949
82950
82951
82952
82953
82954
82955
82956
82957
82958
82959
82960
82961
82962
82963
82964
82965
82966
82967
82968
82969
82970
82971
82972
82973
82974
82975
82976
82977
82978
82979
82980
82981
82982
82983
82984
82985
82986
82987
82988
82989
82990
82991
82992
82993
82994
82995
82996
82997
82998
82999
83000
83001
83002
83003
83004
83005
83006
83007
83008
83009
83010
83011
83012
83013
83014
83015
83016
83017
83018
83019
83020
83021
83022
83023
83024
83025
83026
83027
83028
83029
83030
83031
83032
83033
83034
83035
83036
83037
83038
83039
83040
83041
83042
83043
83044
83045
83046
83047
83048
83049
83050
83051
83052
83053
83054
83055
83056
83057
83058
83059
83060
83061
83062
83063
83064
83065
83066
83067
83068
83069
83070
83071
83072
83073
83074
83075
83076
83077
83078
83079
83080
83081
83082
83083
83084
83085
83086
83087
83088
83089
83090
83091
83092
83093
83094
83095
83096
83097
83098
83099
83100
83101
83102
83103
83104
83105
83106
83107
83108
83109
83110
83111
83112
83113
83114
83115
83116
83117
83118
83119
83120
83121
83122
83123
83124
83125
83126
83127
83128
83129
83130
83131
83132
83133
83134
83135
83136
83137
83138
83139
83140
83141
83142
83143
83144
83145
83146
83147
83148
83149
83150
83151
83152
83154 {
83155 return;
83156 }
83162 {
83164 }
83166 {
83167 Main.player[
owner].TryCancelChannel(
this);
83168 }
83170 {
83172 return;
83173 }
83174 if (Main.getGoodWorld &&
aiStyle == 16)
83175 {
83177 }
83178 if (Main.netMode != 1 && Main.getGoodWorld)
83179 {
83181 {
83183 }
83185 {
83187 }
83188 }
83191 {
83192 if (
position.Y - (
float)
height <= (
float)(16 * Main.offScreenRange) &&
owner == Main.myPlayer)
83193 {
83194 Main.Achievements.GetCondition("TO_INFINITY_AND_BEYOND", "Do").Complete();
83195 }
83199 for (int i = 0; i < 15; i++)
83200 {
83205 dust334.velocity *= 0.5f;
83206 }
83207 for (
int j = 0;
j < 5;
j++)
83208 {
83210 dust284.noGravity = true;
83213 dust334.velocity *= 2.5f;
83217 dust334.velocity *= 2
f;
83218 dust284.noGravity = true;
83219 }
83220 for (
int k = 0;
k < 3;
k++)
83221 {
83225 dust334.velocity *= 2
f;
83226 dust295.noGravity = true;
83227 }
83228 for (
int l = -1;
l <= 1;
l += 2)
83229 {
83230 for (
int m = -1;
m <= 1;
m += 2)
83231 {
83232 if (Main.rand.Next(5) == 0)
83233 {
83234 Gore gore = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
83237 gore64.velocity *= 0.2f;
83240 gore64.scale *= 0.65f;
83243 gore64.velocity +=
new Vector2((
float)
l, (
float)
m) * 0.5f;
83244 }
83245 }
83246 }
83247 }
83248 else if (
type == 949)
83249 {
83254 {
83257 if (Main.rand.Next(3) != 0)
83258 {
83259 Main.dust[
num474].noGravity =
true;
83260 }
83263 dust334.velocity *= 0.8f;
83265 {
83266 Main.dust[
num474].color =
new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB);
83267 Main.dust[
num474].noGravity =
true;
83268 }
83269 }
83270 }
83271 else if (
type == 985)
83272 {
83274 {
83275 Color value = default(Color);
83277 Color
value6 =
default(Color);
83279 for (
int n = 0;
n < 20;
n++)
83280 {
83281 float num585 = Main.rand.NextFloatDirection();
83284 Vector2
vector12 = base.Center +
f.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0
f, 1
f, 60
f, 85
f) *
scale;
83285 float num806 = Main.rand.NextFloat();
83289 Color.Lerp(
value7, Color.White, Main.rand.NextFloat() * 0.3f);
83297 dust334.position -= dust306.velocity * Main.rand.NextFloat() * 3
f;
83300 dust334.scale *= 1
f -
num806;
83301 }
83303 {
83304 float num2 = Main.rand.NextFloatDirection();
83307 Vector2
vector23 = base.Center +
f2.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0
f, 1
f, 70
f, 85
f) *
scale;
83308 float num53 = Main.rand.NextFloat() * 0.25f;
83312 Color.Lerp(
value8, Color.White, Main.rand.NextFloat() * 0.3f);
83320 dust334.position -= dust317.velocity * Main.rand.NextFloat() * 3
f;
83323 dust334.scale *= 1
f -
num53;
83324 }
83326 {
83327 float num75 = Main.rand.NextFloatDirection();
83330 Vector2
vector34 = base.Center +
f3.ToRotationVector2() * Utils.Remap(Main.rand.NextFloat(), 0
f, 1
f, 60
f, 75
f) *
scale;
83331 float num97 = Main.rand.NextFloat() * 0.25f;
83335 Color.Lerp(
value9, Color.White, Main.rand.NextFloat() * 0.3f);
83343 dust334.position -= dust328.velocity * Main.rand.NextFloat() * 3
f;
83346 dust334.scale *= 1
f -
num97;
83347 }
83348 }
83349 }
83350 else if (
type == 756)
83351 {
83353 {
83354 Dust
dust332 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(16
f, 16
f) *
scale +
velocity.SafeNormalize(Vector2.UnitY) *
num108 * 200
f *
scale, 5, Main.rand.NextVector2Circular(3
f, 3
f));
83355 dust332.velocity.Y += -0.3f;
83358 dust334.velocity +=
velocity * 0.2f;
83359 dust332.scale = 1
f;
83360 dust332.alpha = 100;
83361 }
83362 }
83363 else if (
type == 961)
83364 {
83366 {
83367 Dust
dust333 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(16
f, 16
f) *
scale +
velocity.SafeNormalize(Vector2.UnitY) *
num119 * 200
f *
scale, 16, Main.rand.NextVector2Circular(3
f, 3
f));
83368 dust333.velocity.Y += -0.3f;
83371 dust334.velocity +=
velocity * 0.2f;
83372 dust333.scale = 1
f;
83373 dust333.alpha = 100;
83374 }
83375 }
83376 else if (
type == 962)
83377 {
83379 {
83380 Dust
dust2 = Dust.NewDustPerfect(
base.Center + Main.rand.NextVector2Circular(16
f, 16
f) *
scale, 16, Main.rand.NextVector2Circular(2
f, 2
f));
83383 dust334.velocity +=
velocity * 0.1f;
83385 dust2.alpha = 100;
83386 }
83387 }
83388 else if (
type == 932)
83389 {
83392 Vector2 target =
base.Center;
83393 Main.rand.NextFloat();
83396 {
83398 int num164 = Main.rand.Next(1, 3);
83401 {
83403 }
83405 {
83407 }
83408 vector45.DirectionTo(target).SafeNormalize(Vector2.Zero);
83411 {
83415 dust334.velocity *= Main.rand.NextFloat() * 0.8f;
83416 Main.dust[
num197].noGravity =
true;
83417 Main.dust[
num197].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
83418 Main.dust[
num197].fadeIn = Main.rand.NextFloat() * 1.2f *
num175;
83421 dust334.scale *=
num175;
83423 {
83427 dust334.scale /= 2
f;
83430 dust334.fadeIn *= 0.85f;
83431 dust3.color = new Color(255, 255, 255, 255);
83432 }
83433 }
83434 }
83435 }
83436 else if (
type == 931)
83437 {
83441 Main.rand.NextFloat();
83443 {
83446 {
83447 break;
83448 }
83449 int num219 = Main.rand.Next(1, 3);
83452 {
83454 }
83456 {
83458 }
83462 {
83466 dust334.velocity *= Main.rand.NextFloat() * 0.8f;
83467 Main.dust[
num253].noGravity =
true;
83468 Main.dust[
num253].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
83469 Main.dust[
num253].fadeIn = Main.rand.NextFloat() * 1.2f *
num230;
83472 dust334.scale *=
num230;
83474 {
83478 dust334.scale /= 2
f;
83481 dust334.fadeIn *= 0.85f;
83482 dust4.color = new Color(255, 255, 255, 255);
83483 }
83484 }
83485 }
83486 }
83487 else if (
type == 79)
83488 {
83498 float num264 = Main.rand.NextFloat();
83500 {
83503 {
83504 break;
83505 }
83507 int num286 = Main.rand.Next(1, 4);
83511 {
83513 }
83515 {
83517 }
83519 {
83521 }
83526 {
83530 dust334.velocity *= Main.rand.NextFloat() * 0.8f;
83531 Main.dust[
num319].noGravity =
true;
83532 Main.dust[
num319].scale = 0.9f + Main.rand.NextFloat() * 1.2f;
83533 Main.dust[
num319].fadeIn = Main.rand.NextFloat() * 1.2f *
num297;
83539 dust334.scale *=
num297;
83542 {
83546 dust334.scale /= 2
f;
83549 dust334.fadeIn *= 0.85f;
83550 dust5.color = new Color(255, 255, 255, 255);
83551 }
83552 }
83553 }
83555 {
83557 {
83558 PositionInWorld = base.Center
83559 };
83560 Vector2
unitX = Vector2.UnitX;
83565 }
83567 {
83568 int num352 = Dust.NewDust(
position,
width,
height, 66, 0
f, 0
f, 100, Main.hslToRgb(Main.rand.NextFloat(), 1
f, 0.5f), 1.7f);
83569 Main.dust[
num352].noGravity =
true;
83572 dust334.velocity *= 3
f;
83573 }
83574 }
83575 else if (
type == 16)
83576 {
83587 {
83590 {
83591 break;
83592 }
83593 Color
newColor2 = Main.hslToRgb(4
f / 9
f + Main.rand.NextFloat() * (2
f / 9
f), 1
f, 0.65f);
83594 int num375 = Main.rand.Next(1, 4);
83597 {
83599 }
83601 {
83603 }
83607 {
83608 if (Main.rand.Next(3) == 0)
83609 {
83613 dust334.velocity *= Main.rand.NextFloat() * 0.8f;
83614 Main.dust[
num408].noGravity =
true;
83615 Main.dust[
num408].scale = Main.rand.NextFloat() * 0.8f;
83616 Main.dust[
num408].fadeIn = Main.rand.NextFloat() * 1.2f *
num386;
83622 dust334.scale *=
num386;
83624 {
83628 dust334.scale /= 2
f;
83631 dust334.fadeIn /= 2
f;
83632 dust6.color = new Color(255, 255, 255, 255);
83633 }
83634 }
83635 else
83636 {
83638 Main.rand.Next(2);
83639 dust7.noGravity = true;
83642 dust334.velocity *= 2
f;
83648 dust334.scale *=
num386;
83649 dust7.fadeIn = (0.6f + Main.rand.NextFloat() * 0.4f) *
num386;
83650 dust7.noLightEmittence = (dust7.noLight = true);
83651 }
83652 }
83653 }
83655 {
83657 dust8.noGravity = true;
83658 dust8.velocity = Main.rand.NextVector2Circular(1
f, 1
f) * 1.5f;
83659 dust8.scale = 1.2f + Main.rand.NextFloat() * 0.5f;
83660 dust8.noLightEmittence = (dust8.noLight = true);
83663 dust334.velocity +=
velocity * 0.01f;
83666 dust334.position += dust8.velocity * (float)Main.rand.Next(1, 16);
83670 dust334.velocity *= 1.2f;
83671 dust8.noLightEmittence = (dust8.noLight = true);
83674 dust334.velocity +=
velocity * 0.01f;
83677 dust334.scale *= 0.8f + Main.rand.NextFloat() * 0.2f;
83680 dust334.position += dust8.velocity * (float)Main.rand.Next(1, 16);
83681 }
83682 }
83683 else if (
type == 34)
83684 {
83695 {
83698 {
83699 break;
83700 }
83701 Color
newColor3 = Main.hslToRgb(Main.rand.NextFloat() * (1
f / 9
f), 1
f, 0.5f);
83702 int num441 = Main.rand.Next(1, 5);
83705 {
83707 }
83709 {
83711 }
83715 {
83716 if (Main.rand.Next(3) == 0)
83717 {
83721 dust334.velocity *= Main.rand.NextFloat() * 0.8f;
83722 Main.dust[
num475].noGravity =
true;
83723 Main.dust[
num475].scale = Main.rand.NextFloat() * 1
f;
83724 Main.dust[
num475].fadeIn = Main.rand.NextFloat() * 2
f;
83730 dust334.scale *=
num452;
83732 {
83736 dust334.scale /= 2
f;
83739 dust334.fadeIn /= 2
f;
83740 dust9.color = new Color(255, 255, 255, 255);
83741 }
83742 }
83743 else
83744 {
83748 if (Main.rand.Next(2) == 0)
83749 {
83750 dust10.noGravity = true;
83753 dust334.scale *= 2.5f;
83754 }
83757 dust334.velocity *= 2
f;
83763 dust334.scale *=
num452;
83764 dust10.noLightEmittence = (dust10.noLight = true);
83765 }
83766 }
83767 }
83769 {
83771 dust11.noGravity = true;
83772 dust11.velocity = Main.rand.NextVector2Circular(1
f, 1
f) * 6
f;
83773 dust11.scale = 1.6f;
83774 dust11.fadeIn = 1.3f + Main.rand.NextFloat() * 1
f;
83775 dust11.noLightEmittence = (dust11.noLight = true);
83778 dust334.velocity +=
velocity * 0.1f;
83782 dust334.velocity *= 2
f;
83783 dust11.noLightEmittence = (dust11.noLight = true);
83786 dust334.velocity +=
velocity * 0.1f;
83787 }
83788 }
83790 {
83796 {
83797 Dust
dust274 = Dust.NewDustPerfect(
base.Center, 267);
83798 dust274.fadeIn = 1
f;
83799 dust274.noGravity = true;
83800 dust274.alpha = 100;
83801 dust274.color = Color.Lerp(
value10, Color.White, Main.rand.NextFloat() * 0.4f);
83803 {
83804 dust274.velocity =
num519.ToRotationVector2() * 3.2f;
83805 dust274.scale = 2.3f;
83806 }
83807 else if (
num530 % 2 == 0)
83808 {
83809 dust274.velocity =
num519.ToRotationVector2() * 1.8f;
83810 dust274.scale = 1.9f;
83811 }
83812 else
83813 {
83814 dust274.velocity =
num519.ToRotationVector2();
83815 dust274.scale = 1.6f;
83816 }
83820 dust334.velocity +=
velocity * Main.rand.NextFloat() * 0.5f;
83821 }
83822 }
83825 {
83828 {
83829 Vector2
unitY = Vector2.UnitY;
83834 Color
white = Color.White;
83835 if (Main.rand.Next(3) == 0)
83836 {
83837 switch (Main.rand.Next(3))
83838 {
83839 default:
83841 break;
83842 case 0:
83844 break;
83845 case 1:
83847 break;
83848 case 2:
83850 break;
83851 }
83856 dust275.fadeIn = 1
f;
83857 }
83858 else
83859 {
83861 Dust
dust276 = Dust.NewDustDirect(
position + Main.rand.NextVector2Circular(18
f, 18
f) *
scale, 2, 2, 138,
vector6.X,
vector6.Y, 0,
default(Color), Main.rand.NextFloat() * 0.3f + 0.6f);
83865 }
83866 }
83867 }
83869 {
83871 {
83872 Vector2
unitY2 = Vector2.UnitY;
83873 double radians6 = (float)
num552 * ((
float)Math.PI * 2
f) + Main.rand.NextFloat() * ((float)
Math.PI * 2
f) * 0.5f;
83876 int num563 = Dust.NewDust(
position +
base.Size * Main.rand.NextVector2Square(0
f, 1
f), 4, 4, 4,
vector7.X,
vector7.Y, 80,
new Color(78, 136, 255, 150), 1.5f);
83877 Main.dust[
num563].noGravity =
true;
83878 }
83879 }
83881 {
83883 {
83884 Vector2
unitY3 = Vector2.UnitY;
83885 double radians7 = (float)
num574 * ((
float)Math.PI * 2
f) + Main.rand.NextFloat() * ((float)
Math.PI * 2
f) * 0.5f;
83889 Main.dust[
num586].noGravity =
true;
83890 }
83891 }
83893 {
83895 {
83896 Vector2
unitY4 = Vector2.UnitY;
83897 double radians8 = (float)
num597 * ((
float)Math.PI * 2
f) + Main.rand.NextFloat() * ((float)
Math.PI * 2
f) * 0.5f;
83901 Main.dust[
num608].noGravity =
true;
83902 }
83903 }
83905 {
83907 {
83908 Vector2
unitY5 = Vector2.UnitY;
83909 double radians9 = (float)
num619 * ((
float)Math.PI * 2
f) + Main.rand.NextFloat() * ((float)
Math.PI * 2
f) * 0.5f;
83913 Main.dust[
num630].noGravity =
true;
83914 }
83915 }
83917 {
83919 {
83920 Vector2
val4 =
position + base.Size * Main.rand.NextVector2Square(0
f, 1
f);
83921 Vector2
unitY6 = Vector2.UnitY;
83924 Dust.NewDustPerfect(
val4, 278,
unitY6.RotatedBy(
radians10,
center4) * (2
f + Main.rand.NextFloat() * 0.5f), 150, Color.Lerp(Color.White, Color.Gold, Main.rand.NextFloat()), 0.4
f).noGravity =
true;
83925 }
83927 {
83928 Vector2
val5 =
position + base.Size * Main.rand.NextVector2Square(0
f, 1
f);
83929 Vector2
unitY7 = Vector2.UnitY;
83932 Dust.NewDustPerfect(
val5, 278,
unitY7.RotatedBy(
radians11,
center4) * (1
f + Main.rand.NextFloat() * 0.5f), 150, Color.Lerp(Color.White, Main.OurFavoriteColor, Main.rand.NextFloat()), 0.7
f).noGravity =
true;
83933 }
83934 }
83937 {
83939 {
83941 }
83943 {
83945 Vector2
unitY8 = Vector2.UnitY;
83948 Dust.NewDustPerfect(
center5, 278,
unitY8.RotatedBy(
radians12,
center4) * (4
f + Main.rand.NextFloat() * 2
f), 150, Color.Lerp(Color.White, Color.HotPink, Main.rand.NextFloat() * 0.5f + 0.5f)).noGravity =
true;
83949 }
83951 {
83953 Vector2
unitY9 = Vector2.UnitY;
83956 Dust.NewDustPerfect(
center6, 278,
unitY9.RotatedBy(
radians13,
center4) * (2
f + Main.rand.NextFloat() * 1
f), 150, Color.Lerp(Color.White, Color.Orange, Main.rand.NextFloat() * 0.5f + 0.5f)).noGravity =
true;
83957 }
83958 Vector2
vector11 =
default(Vector2);
83961 if (((Rectangle)(
ref val6)).Intersects(Utils.CenteredRectangle(Main.screenPosition +
vector11 / 2
f,
vector11 +
new Vector2(400
f))))
83962 {
83964 {
83965 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) * 3
f, Utils.SelectRandom<
int>(Main.rand, 16));
83966 }
83967 }
83969 {
83970 PositionInWorld = base.Center
83978 }
83980 {
83982 }
83984 {
83986 }
83987 else if (
type == 711)
83988 {
83990 }
83991 else if (
type == 704)
83992 {
83995 {
83996 activeSound.Volume = 0
f;
83998 }
83999 }
84001 {
84009 {
84011 Main.dust[
num718].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84012 }
84014 {
84016 Main.dust[
num740].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84017 Main.dust[
num740].noGravity =
true;
84020 dust334.velocity *= 2
f;
84021 }
84023 {
84027 Vector2
spinningpoint6 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84031 Main.dust[
num762].noGravity =
true;
84034 dust334.velocity *= 2
f;
84035 }
84036 }
84037 else if (
type == 711)
84038 {
84041 {
84045 {
84046 int num795 = Utils.SelectRandom<
int>(Main.rand, 6, 55, 158);
84048 Main.dust[
num807].alpha = 200;
84051 dust334.velocity *= 2.4f;
84054 dust334.scale += Main.rand.NextFloat();
84057 dust334.scale -= 0.5f;
84058 if (Main.dust[
num807].type == 55)
84059 {
84060 Main.dust[
num807].color = Color.Lerp(
new Color(128, 0, 180, 128), Color.Gold, Main.rand.NextFloat());
84061 }
84062 Main.dust[
num807].noLight =
true;
84063 }
84064 }
84066 {
84070 {
84071 if (Main.rand.Next(3) != 0)
84072 {
84073 int num840 = Utils.SelectRandom<
int>(Main.rand, 55);
84075 Main.dust[
num851].alpha = 120;
84078 dust334.velocity *= 2.4f;
84081 dust334.scale += Main.rand.NextFloat() * 0.7f;
84084 dust334.scale -= 0.5f;
84085 if (Main.dust[
num851].type == 55)
84086 {
84087 Main.dust[
num851].color = Color.Lerp(Color.Purple, Color.Black, Main.rand.NextFloat());
84088 }
84089 Main.dust[
num851].noLight =
true;
84090 }
84091 }
84092 }
84094 {
84098 {
84099 if (Main.rand.Next(3) != 0)
84100 {
84101 int num884 = Utils.SelectRandom<
int>(Main.rand, 55);
84103 Main.dust[
num895].alpha = 80;
84106 dust334.velocity *= 0.3f;
84109 dust334.velocity +=
velocity * 0.5f;
84112 dust334.scale += Main.rand.NextFloat() * 0.7f;
84115 dust334.scale -= 0.5f;
84116 if (Main.dust[
num895].type == 55)
84117 {
84118 Main.dust[
num895].color = Color.Lerp(Color.Purple, Color.Black, Main.rand.NextFloat());
84119 }
84120 Main.dust[
num895].noLight =
true;
84121 }
84122 }
84123 }
84125 {
84126 if (Main.rand.Next(3) != 0)
84127 {
84130 dust277.noGravity = true;
84131 dust277.scale = 1.25f + Main.rand.NextFloat();
84132 dust277.fadeIn = 1.5f;
84135 dust334.velocity *= 6
f;
84136 dust277.noLight = true;
84137 }
84138 }
84140 {
84141 if (Main.rand.Next(3) != 0)
84142 {
84145 dust278.noGravity = true;
84146 dust278.scale = 1.25f + Main.rand.NextFloat();
84147 dust278.fadeIn = 1.5f;
84150 dust334.velocity *= 6
f;
84151 dust278.noLight = true;
84152 dust278.color = new Color(0, 0, 220, 128);
84153 }
84154 }
84155 if (
owner == Main.myPlayer)
84156 {
84158 base.Size =
new Vector2(140
f);
84164 }
84165 }
84166 else if (
type == 662 ||
type == 685)
84167 {
84172 {
84173 if (Main.rand.Next(2) == 0)
84174 {
84176 continue;
84177 }
84179 dust279.position = (dust279.position +
base.Center) / 2
f;
84185 dust334.velocity *= 0.5f;
84186 dust279.noGravity = true;
84188 }
84189 }
84191 {
84196 {
84197 if (Main.rand.Next(2) == 0)
84198 {
84200 continue;
84201 }
84203 dust280.position = (dust280.position +
base.Center) / 2
f;
84209 dust334.velocity *= 0.5f;
84210 dust280.noGravity = true;
84212 }
84214 }
84216 {
84223 float num14 = 1.5f;
84226 if (Main.player[
owner].setApprenticeT3)
84227 {
84237 }
84244 {
84246 Main.dust[
num37].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84247 }
84249 {
84251 dust281.position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 10
f;
84254 dust334.velocity *= 16
f;
84256 {
84257 dust281.velocity.Y *= -0.4f;
84258 }
84259 dust281.noLight = true;
84260 dust281.noGravity = true;
84261 }
84263 {
84265 dust282.position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84268 dust334.velocity *= 2
f;
84269 dust282.noGravity = true;
84270 dust282.fadeIn =
num14;
84271 }
84273 {
84277 Vector2
spinningpoint7 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84281 Main.dust[
num41].noGravity =
true;
84284 dust334.velocity *= 3
f;
84285 }
84287 {
84291 Vector2
spinningpoint8 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84295 Main.dust[
num44].noGravity =
true;
84298 dust334.velocity *= 3
f;
84299 }
84301 {
84302 Vector2
val7 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
84305 Main.gore[
num46].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84308 gore64.position -= Vector2.One * 16
f;
84309 if (Main.rand.Next(2) == 0)
84310 {
84311 Main.gore[
num46].position.Y -= 30
f;
84312 }
84315 gore64.velocity *= 0.3f;
84316 Main.gore[
num46].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
84317 Main.gore[
num46].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
84318 }
84319 }
84320 else if (
type == 681)
84321 {
84322 position.X +=
width / 2;
84323 position.Y +=
height / 2;
84327 position.X -=
width / 2;
84328 position.Y -=
height / 2;
84330 {
84334 dust334.velocity *= 1.4f;
84338 dust334.velocity *= 1.4f;
84339 Main.dust[
num48].noGravity =
true;
84340 Main.dust[
num48].fadeIn = 2
f;
84341 }
84343 {
84345 Main.dust[
num50].noGravity =
true;
84348 dust334.velocity *= 5
f;
84352 dust334.velocity *= 3
f;
84353 }
84359 gore64.velocity *= 0.4f;
84360 Main.gore[
num51].velocity.X += 1
f;
84361 Main.gore[
num51].velocity.Y += 1
f;
84367 gore64.velocity *= 0.4f;
84368 Main.gore[
num51].velocity.X -= 1
f;
84369 Main.gore[
num51].velocity.Y += 1
f;
84375 gore64.velocity *= 0.4f;
84376 Main.gore[
num51].velocity.X += 1
f;
84377 Main.gore[
num51].velocity.Y -= 1
f;
84383 gore64.velocity *= 0.4f;
84384 Main.gore[
num51].velocity.X -= 1
f;
84385 Main.gore[
num51].velocity.Y -= 1
f;
84386 position.X +=
width / 2;
84387 position.Y +=
height / 2;
84390 position.X -=
width / 2;
84391 position.Y -=
height / 2;
84393 }
84395 {
84397 Vector2
vector17 =
default(Vector2);
84400 {
84401 Dust
dust283 = Dust.NewDustDirect(
base.Center -
vector17 / 2
f, (
int)
vector17.X, (int)
vector17.Y, 4, 0
f, 0
f, 100,
new Color(255, 255, 255, 110), 1.1f);
84404 dust334.velocity *= 1.4f;
84405 }
84407 {
84408 Dust
dust285 = Dust.NewDustDirect(
base.Center -
vector17 / 2
f, (
int)
vector17.X, (int)
vector17.Y, 4, 0
f, 0
f, 50,
new Color(245, 200, 30, 155), 1.2f);
84409 dust285.noGravity = true;
84412 dust334.velocity *= 4
f;
84413 dust285 = Dust.NewDustDirect(
base.Center -
vector17 / 2
f, (
int)
vector17.X, (int)
vector17.Y, 4, 0
f, 0
f, 50,
new Color(245, 200, 30, 155), 0.8f);
84416 dust334.velocity *= 2
f;
84417 }
84418 }
84420 {
84421 PopupText.ClearSonarText();
84423 {
84425 }
84427 }
84429 {
84430 int num55 = Utils.SelectRandom<
int>(Main.rand, 242, 73, 72, 71, 255);
84434 float num59 = 1.7f;
84435 float num60 = 0.8f;
84440 {
84443 num55 = Utils.SelectRandom<
int>(Main.rand, 242, 59, 88);
84448 }
84457 {
84458 num55 = Utils.SelectRandom<
int>(Main.rand, 242, 73, 72, 71, 255);
84460 {
84461 num55 = Utils.SelectRandom<
int>(Main.rand, 242, 59, 88);
84462 }
84464 Main.dust[
num63].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84465 Main.dust[
num63].noGravity =
true;
84468 dust334.velocity *= 3
f;
84471 dust334.velocity +=
vector19 * Main.rand.NextFloat();
84473 Main.dust[
num63].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84476 dust334.velocity *= 2
f;
84477 Main.dust[
num63].noGravity =
true;
84478 Main.dust[
num63].fadeIn = 1
f;
84479 Main.dust[
num63].color = Color.Crimson * 0.5f;
84482 dust334.velocity +=
vector19 * Main.rand.NextFloat();
84483 }
84485 {
84489 Vector2
spinningpoint9 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84493 Main.dust[
num66].noGravity =
true;
84496 dust334.velocity *= 0.5f;
84499 dust334.velocity +=
vector19 * (0.6f + 0.6f * Main.rand.NextFloat());
84500 }
84501 }
84502 else if (
type == 651)
84503 {
84505 {
84507 Point
ps = Utils.ToPoint(
new Vector2(
ai[0],
ai[1]));
84508 Point
pe =
base.Center.ToTileCoordinates();
84509 if (Main.netMode == 1)
84510 {
84512 }
84513 else
84514 {
84516 }
84517 }
84518 }
84519 else if (
type == 641)
84520 {
84521 if (
owner == Main.myPlayer)
84522 {
84524 {
84525 if (Main.projectile[
num67].active && Main.projectile[
num67].owner ==
owner && Main.projectile[
num67].type == 642)
84526 {
84527 Main.projectile[
num67].Kill();
84528 }
84529 }
84530 }
84531 }
84532 else if (
type == 643)
84533 {
84534 if (
owner == Main.myPlayer)
84535 {
84537 {
84538 if (Main.projectile[
num68].active && Main.projectile[
num68].owner ==
owner && Main.projectile[
num68].type == 644)
84539 {
84540 Main.projectile[
num68].Kill();
84541 }
84542 }
84543 }
84544 }
84545 else if (
type == 645)
84546 {
84547 bool flag2 =
WorldGen.SolidTile(Framing.GetTileSafely((
int)position.X / 16, (int)
position.Y / 16));
84549 {
84551 }
84553 {
84555 Main.dust[
num71].noGravity =
true;
84558 dust334.velocity *= 3
f;
84560 {
84561 Main.dust[
num71].noLight =
true;
84562 }
84566 dust334.velocity *= 2
f;
84567 Main.dust[
num71].noGravity =
true;
84569 {
84570 Main.dust[
num71].noLight =
true;
84571 }
84572 }
84574 {
84575 Vector2
val12 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
84580 gore64.velocity *= 0.3f;
84581 Main.gore[
num73].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
84582 Main.gore[
num73].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
84583 }
84584 }
84585 else if (
type == 636)
84586 {
84589 {
84593 {
84594 int num77 = Utils.SelectRandom<
int>(Main.rand, 6, 259, 158);
84596 Main.dust[
num78].alpha = 200;
84599 dust334.velocity *= 2.4f;
84602 dust334.scale += Main.rand.NextFloat();
84603 }
84604 }
84605 if (Main.myPlayer ==
owner)
84606 {
84607 NewProjectile(
GetProjectileSource_FromThis(),
base.Center.X,
base.Center.Y, 0
f, 0
f, 953,
damage, 10
f,
owner, 0
f, 0.85f + Main.rand.NextFloat() * 1.15f);
84608 }
84609 }
84610 else if (
type == 614)
84611 {
84613 {
84615 dust286.noGravity = true;
84618 dust334.velocity *= 3
f;
84619 }
84620 }
84622 {
84624 if (Main.myPlayer ==
owner)
84625 {
84641 }
84642 }
84644 {
84650 {
84652 Main.dust[
num84].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84653 }
84655 {
84657 Main.dust[
num87].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84658 Main.dust[
num87].noGravity =
true;
84661 dust334.velocity *= 3
f;
84664 Main.dust[
num87].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84667 dust334.velocity *= 2
f;
84668 Main.dust[
num87].noGravity =
true;
84669 Main.dust[
num87].fadeIn = 2.5f;
84671 }
84673 {
84677 Vector2
spinningpoint10 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84681 Main.dust[
num89].noGravity =
true;
84684 dust334.velocity *= 3
f;
84686 }
84688 {
84692 Vector2
spinningpoint11 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84696 Main.dust[
num91].noGravity =
true;
84699 dust334.velocity *= 3
f;
84700 }
84702 {
84703 Vector2
val13 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
84706 Main.gore[
num93].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84709 gore64.velocity *= 0.3f;
84710 Main.gore[
num93].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
84711 Main.gore[
num93].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
84712 }
84713 }
84714 else if (
type == 661)
84715 {
84723 Vector2
vector20 = base.Center + Vector2.One * -20
f;
84727 {
84729 Main.dust[
num98].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
num94 / 2
f;
84730 }
84732 {
84734 Main.dust[
num100].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
num94 / 2
f;
84735 Main.dust[
num100].noGravity =
true;
84736 Main.dust[
num100].noLight =
true;
84739 dust334.velocity *= 3
f;
84742 dust334.velocity +=
DirectionTo(Main.dust[
num100].position) * (2
f + Main.rand.NextFloat() * 4
f);
84744 Main.dust[
num100].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
num94 / 2
f;
84747 dust334.velocity *= 2
f;
84748 Main.dust[
num100].noGravity =
true;
84749 Main.dust[
num100].fadeIn = 1
f;
84750 Main.dust[
num100].color = Color.Crimson * 0.5f;
84751 Main.dust[
num100].noLight =
true;
84755 }
84757 {
84761 Vector2
spinningpoint12 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84765 Main.dust[
num102].noGravity =
true;
84766 Main.dust[
num102].noLight =
true;
84769 dust334.velocity *= 3
f;
84773 }
84775 {
84779 Vector2
spinningpoint13 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84783 Main.dust[
num104].noGravity =
true;
84786 dust334.velocity *= 3
f;
84790 }
84791 }
84792 else if (
type == 617)
84793 {
84802 {
84804 Main.dust[
num106].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84805 }
84807 {
84809 Main.dust[
num109].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84810 Main.dust[
num109].noGravity =
true;
84813 dust334.velocity *= 3
f;
84815 Main.dust[
num109].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84818 dust334.velocity *= 2
f;
84819 Main.dust[
num109].noGravity =
true;
84820 Main.dust[
num109].fadeIn = 1
f;
84821 Main.dust[
num109].color = Color.Crimson * 0.5f;
84822 }
84824 {
84828 Vector2
spinningpoint14 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84832 Main.dust[
num111].noGravity =
true;
84835 dust334.velocity *= 3
f;
84836 }
84838 {
84842 Vector2
spinningpoint15 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
84846 Main.dust[
num113].noGravity =
true;
84849 dust334.velocity *= 3
f;
84850 }
84852 {
84853 Vector2
val14 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
84856 Main.gore[
num115].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
84859 gore64.velocity *= 0.3f;
84860 Main.gore[
num115].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
84861 Main.gore[
num115].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
84862 }
84863 if (Main.myPlayer ==
owner)
84864 {
84866 {
84867 if (Main.projectile[
num116].active && Main.projectile[
num116].type == 618 && Main.projectile[
num116].ai[1] == (
float)
whoAmI)
84868 {
84869 Main.projectile[
num116].Kill();
84870 }
84871 }
84872 int num117 = Main.rand.Next(5, 9);
84873 int num118 = Main.rand.Next(5, 9);
84874 int num120 = Utils.SelectRandom<
int>(Main.rand, 86, 90);
84876 Vector2
vector22 =
default(Vector2);
84878 {
84879 Vector2
vector21 = base.Center + Utils.RandomVector2(Main.rand, -30
f, 30
f);
84880 ((Vector2)(
ref vector22)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
84882 {
84883 ((Vector2)(
ref vector22)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
84884 }
84887 {
84889 }
84890 vector22 *= (float)Main.rand.Next(70, 101) * 0.1f;
84892 }
84893 Vector2
vector25 =
default(Vector2);
84895 {
84896 Vector2
vector24 = base.Center + Utils.RandomVector2(Main.rand, -30
f, 30
f);
84897 ((Vector2)(
ref vector25)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
84899 {
84900 ((Vector2)(
ref vector25)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
84901 }
84904 {
84906 }
84907 vector25 *= (float)Main.rand.Next(40, 81) * 0.1f;
84909 }
84910 }
84911 }
84912 else if (
type == 658)
84913 {
84915 {
84919 if (Main.rand.Next(3) == 0)
84920 {
84921 Main.dust[
num125].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
84922 Main.dust[
num125].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
84926 }
84927 else
84928 {
84929 Main.dust[
num125].scale = 1
f + (float)Main.rand.Next(-10, 11) * 0.01f;
84930 }
84931 Main.dust[
num125].noGravity =
true;
84934 dust334.velocity *= 1.25f;
84938 }
84939 }
84940 else if (
type == 620 ||
type == 618)
84941 {
84943 {
84945 }
84947 {
84951 if (Main.rand.Next(3) == 0)
84952 {
84953 Main.dust[
num127].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
84954 Main.dust[
num127].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
84958 }
84959 else
84960 {
84961 Main.dust[
num127].scale = 1
f + (float)Main.rand.Next(-10, 11) * 0.01f;
84962 }
84963 Main.dust[
num127].noGravity =
true;
84966 dust334.velocity *= 1.25f;
84970 }
84971 }
84972 else if (
type == 619)
84973 {
84976 {
84980 if (Main.rand.Next(3) == 0)
84981 {
84982 Main.dust[
num129].fadeIn = 1.1f + (float)Main.rand.Next(-10, 11) * 0.01f;
84983 Main.dust[
num129].scale = 0.35f + (float)Main.rand.Next(-10, 11) * 0.01f;
84987 }
84988 else
84989 {
84990 Main.dust[
num129].scale = 1.2f + (float)Main.rand.Next(-10, 11) * 0.01f;
84991 }
84992 Main.dust[
num129].noGravity =
true;
84995 dust334.velocity *= 2.5f;
84999 }
85000 if (Main.myPlayer ==
owner)
85001 {
85002 int num131 = Main.rand.Next(3, 6);
85003 Vector2
vector26 =
default(Vector2);
85005 {
85006 ((Vector2)(
ref vector26)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
85008 {
85009 ((Vector2)(
ref vector26)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
85010 }
85012 vector26 *= (float)Main.rand.Next(70, 101) * 0.1f;
85014 }
85015 }
85016 }
85018 {
85021 ((Color)(
ref color)).A =
byte.MaxValue;
85023 {
85024 Vector2
vector27 = Vector2.UnitY.RotatedByRandom(6.2831854820251465) * (3
f * Main.rand.NextFloat());
85025 Dust
dust287 = Main.dust[Dust.NewDust(
base.Center, 0, 0, 263)];
85026 dust287.position =
base.Center;
85028 dust287.color = color;
85029 dust287.scale = 2
f;
85030 dust287.noLight = true;
85031 dust287.noGravity = true;
85032 }
85033 }
85035 {
85040 if (Main.expertMode)
85041 {
85043 }
85048 {
85050 Main.dust[
num136].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85051 }
85053 {
85055 Main.dust[
num138].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85056 Main.dust[
num138].noGravity =
true;
85059 dust334.velocity *= 2
f;
85060 }
85062 {
85066 Vector2
spinningpoint16 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85070 Main.dust[
num140].noGravity =
true;
85073 dust334.velocity *= 2
f;
85074 }
85075 }
85077 {
85079 {
85089 {
85091 Main.dust[
num147].noGravity =
true;
85093 {
85095 Main.dust[
num147].fadeIn = 1.5f + Main.rand.NextFloat() * 0.5f;
85098 Vector2
unitY10 = Vector2.UnitY;
85102 }
85103 else
85104 {
85105 Main.dust[
num147].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * Main.rand.NextFloat() * (float)
width / 3
f;
85106 Main.dust[
num147].fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
85109 dust334.velocity *= 2
f;
85110 }
85111 }
85113 {
85117 Vector2
spinningpoint17 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85121 Main.dust[
num150].fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
85122 Main.dust[
num150].noGravity =
true;
85125 dust334.velocity *= 1.5f;
85126 }
85127 }
85128 }
85129 else if (
type >= 625 &&
type <= 628)
85130 {
85132 {
85134 Main.dust[
num152].noGravity =
true;
85135 Main.dust[
num152].noLight =
true;
85136 }
85137 }
85139 {
85140 int num154 = Main.rand.Next(5, 10);
85142 {
85143 int num156 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100);
85146 dust334.velocity *= 1.6f;
85147 Main.dust[
num156].velocity.Y -= 1
f;
85150 dust334.position -= Vector2.One * 4
f;
85151 Main.dust[
num156].position = Vector2.Lerp(Main.dust[
num156].position,
base.Center, 0.5f);
85152 Main.dust[
num156].noGravity =
true;
85153 }
85154 }
85156 {
85163 {
85165 Main.dust[
num158].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85166 }
85168 {
85170 Main.dust[
num160].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85171 Main.dust[
num160].noGravity =
true;
85174 dust334.velocity *= 3
f;
85175 }
85177 {
85181 Vector2
spinningpoint18 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85185 Main.dust[
num162].noGravity =
true;
85188 dust334.velocity *= 3
f;
85189 }
85191 {
85195 Vector2
spinningpoint19 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85199 Main.dust[
num165].noGravity =
true;
85202 dust334.velocity *= 3
f;
85203 }
85204 }
85205 else if (
type == 585)
85206 {
85209 {
85211 Main.dust[
num167].noGravity =
true;
85214 dust334.velocity *= 1.2f;
85215 Main.dust[
num167].scale = 1.3f;
85220 Main.dust[
num167].noGravity =
true;
85223 dust334.velocity *= 3
f;
85224 }
85225 }
85226 else if (
type == 590)
85227 {
85231 {
85233 }
85235 {
85239 dust334.velocity *= 2
f;
85240 Main.dust[
num170].noGravity =
true;
85241 }
85242 float num171 = 0.6f + Main.rand.NextFloat() * 0.4f;
85245 {
85247 }
85251 gore64.velocity *= 0.3f;
85255 gore64.velocity *= 0.3f;
85259 gore64.velocity *= 0.3f;
85260 }
85261 else if (
type == 587)
85262 {
85267 {
85269 Main.dust[
num176].noGravity =
true;
85272 dust334.velocity *= 1.2f;
85273 Main.dust[
num176].scale = 0.9f;
85278 Main.dust[
num176].noGravity =
true;
85281 dust334.velocity *= 2
f;
85282 }
85283 }
85284 else if (
type == 572)
85285 {
85287 {
85291 dust334.velocity *= 3
f;
85292 Main.dust[
num178].noGravity =
true;
85293 Main.dust[
num178].scale = 1.25f;
85295 }
85296 }
85297 else if (
type == 581)
85298 {
85300 {
85301 int num180 = Utils.SelectRandom<
int>(Main.rand, 229, 229, 161);
85303 dust288.noGravity = true;
85304 dust288.scale = 1.25f + Main.rand.NextFloat();
85305 dust288.fadeIn = 0.25f;
85308 dust334.velocity *= 2
f;
85309 dust288.noLight = true;
85310 }
85311 }
85312 else if (
type == 671)
85313 {
85315 {
85316 int num182 = Utils.SelectRandom<
int>(Main.rand, 27, 27, 62);
85318 dust289.noGravity = true;
85319 dust289.scale = 1.25f + Main.rand.NextFloat();
85320 dust289.fadeIn = 0.25f;
85323 dust334.velocity *= 2
f;
85324 dust289.noLight = true;
85325 }
85326 }
85327 else if (
type == 811 ||
type == 814)
85328 {
85330 {
85332 dust290.scale = 1.25f + Main.rand.NextFloat();
85335 dust334.velocity *= 2
f;
85336 }
85337 }
85338 else if (
type == 819)
85339 {
85342 {
85344 dust291.scale = 1
f + Main.rand.NextFloat() * 0.5f;
85347 dust334.velocity *= 1.5f;
85348 }
85349 }
85350 else if (
type == 675)
85351 {
85353 {
85354 int num187 = Utils.SelectRandom<
int>(Main.rand, 27, 242, 73, 72, 71, 255, 255, 255);
85356 dust292.noGravity = true;
85357 dust292.scale = 1.25f + Main.rand.NextFloat();
85358 dust292.fadeIn = 0.25f;
85361 dust334.velocity *= 3
f;
85362 dust292.noLight = true;
85363 }
85364 }
85365 else if (
type == 676)
85366 {
85368 {
85369 int num189 = Utils.SelectRandom<
int>(Main.rand, 4, 256);
85371 dust293.scale = 0.8f + Main.rand.NextFloat() * 0.6f;
85372 dust293.fadeIn = 0.5f;
85375 dust334.velocity *= 4.5f;
85376 dust293.noLight = true;
85378 {
85381 dust334.velocity *= -0.5f;
85382 }
85384 {
85385 dust293.color = new Color(80, 170, 40, 120);
85386 }
85387 }
85389 {
85390 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.Lerp(-5
f, 5
f, Main.rand.NextFloat()), (0
f - Main.rand.NextFloat()) * 5
f), 1024);
85391 }
85393 {
85394 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.Lerp(-5
f, 5
f, Main.rand.NextFloat()), (0
f - Main.rand.NextFloat()) * 5
f), 1025);
85395 }
85397 {
85398 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.Lerp(-5
f, 5
f, Main.rand.NextFloat()), (0
f - Main.rand.NextFloat()) * 5
f), 1026);
85399 }
85401 {
85402 Gore.NewGoreDirect(
base.Center,
new Vector2(
MathHelper.Lerp(-0.5f, 0.5f, Main.rand.NextFloat()), (0
f - Main.rand.NextFloat()) * 2
f), 1026);
85403 }
85404 if (Main.netMode != 2)
85405 {
85406 Player player = Main.player[Main.myPlayer];
85407 if (!player.dead && player.active)
85408 {
85410 if (((Vector2)(
ref center4)).Length() < 300
f && !player.creativeGodMode)
85411 {
85413 }
85414 }
85415 }
85416 }
85417 else if (
type == 686)
85418 {
85421 {
85425 {
85426 int num196 = Utils.SelectRandom<
int>(Main.rand, 6, 55, 158);
85428 Main.dust[
num198].alpha = 200;
85431 dust334.velocity *= 2.4f;
85434 dust334.scale += Main.rand.NextFloat();
85437 dust334.scale -= 0.5f;
85438 if (Main.dust[
num198].type == 55)
85439 {
85440 Main.dust[
num198].color = Color.Lerp(Color.Red, Color.Gold, Main.rand.NextFloat());
85441 }
85442 Main.dust[
num198].noLight =
true;
85443 }
85444 }
85446 {
85450 {
85451 int num201 = Utils.SelectRandom<
int>(Main.rand, 55);
85453 Main.dust[
num202].alpha = 120;
85456 dust334.velocity *= 2.4f;
85459 dust334.scale += Main.rand.NextFloat() * 0.7f;
85462 dust334.scale -= 0.5f;
85463 if (Main.dust[
num202].type == 55)
85464 {
85465 Main.dust[
num202].color = Color.Lerp(Color.Purple, Color.Black, Main.rand.NextFloat());
85466 }
85467 Main.dust[
num202].noLight =
true;
85468 }
85469 }
85471 {
85475 {
85476 int num205 = Utils.SelectRandom<
int>(Main.rand, 55);
85478 Main.dust[
num206].alpha = 80;
85481 dust334.velocity *= 0.3f;
85484 dust334.velocity +=
velocity * 0.5f;
85487 dust334.scale += Main.rand.NextFloat() * 0.7f;
85490 dust334.scale -= 0.5f;
85491 if (Main.dust[
num206].type == 55)
85492 {
85493 Main.dust[
num206].color = Color.Lerp(Color.Purple, Color.Black, Main.rand.NextFloat());
85494 }
85495 Main.dust[
num206].noLight =
true;
85496 }
85497 }
85499 {
85502 dust294.noGravity = true;
85503 dust294.scale = 1.25f + Main.rand.NextFloat();
85504 dust294.fadeIn = 1.5f;
85507 dust334.velocity *= 6
f;
85508 dust294.noLight = true;
85509 }
85510 }
85512 {
85516 {
85523 {
85525 }
85526 else
85527 {
85528 dust296.velocity =
vector28 * (float)Main.rand.Next(45, 91) / 10
f;
85529 }
85530 dust296.color = Main.hslToRgb((float)(0.4000000059604645 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f);
85531 dust296.color = Color.Lerp(
dust296.color, Color.White, 0.3f);
85532 dust296.noGravity = true;
85533 dust296.scale = 0.7f;
85534 }
85535 }
85537 {
85546 {
85550 dust334.velocity *= 0.5f;
85551 }
85553 {
85559 gore64.velocity *= 0.5f;
85561 {
85562 case 0:
85563 Main.gore[
num217].velocity.X += 1
f;
85564 Main.gore[
num217].velocity.Y += 1
f;
85565 break;
85566 case 1:
85567 Main.gore[
num217].velocity.X -= 1
f;
85568 Main.gore[
num217].velocity.Y += 1
f;
85569 break;
85570 case 2:
85571 Main.gore[
num217].velocity.X += 1
f;
85572 Main.gore[
num217].velocity.Y -= 1
f;
85573 break;
85574 default:
85575 Main.gore[
num217].velocity.X -= 1
f;
85576 Main.gore[
num217].velocity.Y -= 1
f;
85577 break;
85578 }
85581 gore64.velocity *= 0.5f;
85582 }
85588 }
85590 {
85594 {
85601 {
85603 }
85604 else
85605 {
85606 dust297.velocity =
vector29 * (float)Main.rand.Next(45, 91) / 10
f;
85607 }
85608 dust297.color = Main.hslToRgb((float)(0.4000000059604645 + Main.rand.NextDouble() * 0.20000000298023224), 0.9f, 0.5f);
85609 dust297.color = Color.Lerp(
dust297.color, Color.White, 0.3f);
85610 dust297.noGravity = true;
85611 dust297.scale = 0.7f;
85612 }
85613 }
85614 if (
type == 629 && Main.netMode != 1)
85615 {
85616 switch (Main.npc[(
int)
ai[0]].type)
85617 {
85618 case 517:
85619 if (
NPC.ShieldStrengthTowerSolar != 0)
85620 {
85621 Main.npc[(int)
ai[0]].
ai[3] = 1
f;
85622 }
85623 NPC.ShieldStrengthTowerSolar = (int)
MathHelper.Clamp((
float)(NPC.ShieldStrengthTowerSolar - 1), 0
f, (
float)
NPC.ShieldStrengthTowerMax);
85624 break;
85625 case 422:
85626 if (
NPC.ShieldStrengthTowerVortex != 0)
85627 {
85628 Main.npc[(int)
ai[0]].
ai[3] = 1
f;
85629 }
85630 NPC.ShieldStrengthTowerVortex = (int)
MathHelper.Clamp((
float)(NPC.ShieldStrengthTowerVortex - 1), 0
f, (
float)
NPC.ShieldStrengthTowerMax);
85631 break;
85632 case 507:
85633 if (
NPC.ShieldStrengthTowerNebula != 0)
85634 {
85635 Main.npc[(int)
ai[0]].
ai[3] = 1
f;
85636 }
85637 NPC.ShieldStrengthTowerNebula = (int)
MathHelper.Clamp((
float)(NPC.ShieldStrengthTowerNebula - 1), 0
f, (
float)
NPC.ShieldStrengthTowerMax);
85638 break;
85639 case 493:
85640 if (
NPC.ShieldStrengthTowerStardust != 0)
85641 {
85642 Main.npc[(int)
ai[0]].
ai[3] = 1
f;
85643 }
85644 NPC.ShieldStrengthTowerStardust = (int)
MathHelper.Clamp((
float)(NPC.ShieldStrengthTowerStardust - 1), 0
f, (
float)
NPC.ShieldStrengthTowerMax);
85645 break;
85646 }
85648 NetMessage.SendData(101);
85649 }
85651 {
85652 Vector2
vector30 =
default(Vector2);
85653 ((Vector2)(
ref vector30)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
85657 }
85659 {
85663 position.X -=
width / 2;
85664 position.Y -=
height / 2;
85666 {
85668 }
85670 {
85672 Main.dust[
num224].noGravity =
true;
85675 dust334.velocity *= 3
f;
85679 dust334.velocity *= 2
f;
85680 Main.dust[
num224].noGravity =
true;
85681 }
85683 {
85684 Vector2
val16 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
85689 gore64.velocity *= 0.3f;
85690 Main.gore[
num226].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
85691 Main.gore[
num226].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
85692 }
85694 }
85696 {
85700 position.X -=
width / 2;
85701 position.Y -=
height / 2;
85703 {
85707 double radians29 = 6.2831854820251465 * Main.rand.NextDouble();
85710 }
85712 {
85716 double radians30 = 6.2831854820251465 * Main.rand.NextDouble();
85719 Main.dust[
num231].noGravity =
true;
85722 dust334.velocity *= 1
f;
85726 double radians31 = 6.2831854820251465 * Main.rand.NextDouble();
85731 dust334.velocity *= 1
f;
85732 Main.dust[
num231].noGravity =
true;
85733 }
85735 {
85736 Vector2
val17 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
85741 gore64.velocity *= 0.3f;
85742 Main.gore[
num233].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
85743 Main.gore[
num233].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
85744 }
85746 }
85748 {
85755 {
85757 Main.dust[
num235].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85758 }
85760 {
85762 Main.dust[
num237].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85763 Main.dust[
num237].noGravity =
true;
85766 dust334.velocity *= 3
f;
85768 Main.dust[
num237].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85771 dust334.velocity *= 2
f;
85772 Main.dust[
num237].noGravity =
true;
85773 Main.dust[
num237].fadeIn = 2.5f;
85774 }
85776 {
85780 Vector2
spinningpoint23 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85784 Main.dust[
num239].noGravity =
true;
85787 dust334.velocity *= 3
f;
85788 }
85790 {
85794 Vector2
spinningpoint24 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85798 Main.dust[
num242].noGravity =
true;
85801 dust334.velocity *= 3
f;
85802 }
85804 {
85805 Vector2
val18 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
85808 Main.gore[
num244].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85811 gore64.velocity *= 0.3f;
85812 Main.gore[
num244].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
85813 Main.gore[
num244].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
85814 }
85815 }
85817 {
85824 {
85826 Main.dust[
num246].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85827 }
85829 {
85831 Main.dust[
num248].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85832 Main.dust[
num248].noGravity =
true;
85835 dust334.velocity *= 3
f;
85837 Main.dust[
num248].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85840 dust334.velocity *= 2
f;
85841 Main.dust[
num248].noGravity =
true;
85842 Main.dust[
num248].fadeIn = 2.5f;
85843 }
85845 {
85849 Vector2
spinningpoint25 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85853 Main.dust[
num250].noGravity =
true;
85856 dust334.velocity *= 3
f;
85857 }
85859 {
85863 Vector2
spinningpoint26 = Vector2.UnitX.RotatedByRandom(3.1415927410125732);
85867 Main.dust[
num254].noGravity =
true;
85870 dust334.velocity *= 3
f;
85871 }
85873 {
85874 Vector2
val19 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
85877 Main.gore[
num256].position = base.Center + Vector2.UnitY.RotatedByRandom(3.1415927410125732) * (float)Main.rand.NextDouble() * (float)
width / 2
f;
85880 gore64.velocity *= 0.3f;
85881 Main.gore[
num256].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
85882 Main.gore[
num256].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
85883 }
85884 }
85886 {
85888 {
85890 Main.dust[
num258].noGravity =
true;
85893 dust334.velocity -=
oldVelocity * (float)Main.rand.Next(20, 60) * 0.01f;
85894 }
85895 }
85896 else if (
type == 484)
85897 {
85899 {
85901 Main.dust[
num260].noGravity =
true;
85905 Main.dust[
num260].scale = 0.85f;
85906 }
85907 }
85908 else if (
type == 483)
85909 {
85911 if (
owner == Main.myPlayer)
85912 {
85913 int num261 = Main.rand.Next(4, 8);
85914 int[] array =
new int[
num261];
85917 {
85919 {
85920 continue;
85921 }
85924 {
85928 {
85929 break;
85930 }
85931 }
85932 }
85934 {
85936 {
85940 {
85941 }
85945 }
85946 }
85947 Vector2
vector31 =
default(Vector2);
85950 {
85954 }
85956 Vector2
vector33 =
default(Vector2);
85958 {
85959 float num272 = Main.rand.Next(8, 15);
85960 ((Vector2)(
ref vector33)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
85963 {
85966 }
85969 {
85974 }
85976 }
85977 }
85979 {
85981 Main.dust[
num274].noGravity =
true;
85984 dust334.velocity *= 4
f;
85985 }
85987 {
85991 dust334.velocity *= 0.9f;
85992 Main.dust[
num277].scale = 0.9f;
85993 }
85995 {
85997 Main.dust[
num279].noGravity =
true;
86000 dust334.velocity *= 3
f;
86004 dust334.velocity *= 2
f;
86005 }
86011 gore64.velocity *= 0.3f;
86012 Main.gore[
num280].velocity.X += Main.rand.Next(-1, 2);
86013 Main.gore[
num280].velocity.Y += Main.rand.Next(-1, 2);
86014 if (
owner == Main.myPlayer)
86015 {
86017 position.X -=
num281 / 2;
86018 position.Y -=
num281 / 2;
86023 }
86024 }
86026 {
86029 {
86031 Main.dust[
num283].noGravity =
true;
86033 Main.dust[
num283].velocity =
new Vector2((
float)Main.rand.Next(-100, 101), (
float)Main.rand.Next(-100, 101));
86037 dust334.velocity *= (float)Main.rand.Next(1, 30) * 0.1f;
86039 }
86040 }
86041 else if (
type == 522)
86042 {
86045 {
86049 if (Main.rand.Next(3) == 0)
86050 {
86051 Main.dust[
num285].fadeIn = 0.75f + (float)Main.rand.Next(-10, 11) * 0.01f;
86052 Main.dust[
num285].scale = 0.25f + (float)Main.rand.Next(-10, 11) * 0.005f;
86056 }
86057 else
86058 {
86059 Main.dust[
num285].scale = 1
f + (float)Main.rand.Next(-10, 11) * 0.01f;
86060 }
86061 Main.dust[
num285].noGravity =
true;
86064 dust334.velocity *= 1.25f;
86068 }
86069 }
86070 else if (
type == 521)
86071 {
86074 {
86078 if (Main.rand.Next(3) == 0)
86079 {
86080 Main.dust[
num288].fadeIn = 1.1f + (float)Main.rand.Next(-10, 11) * 0.01f;
86081 Main.dust[
num288].scale = 0.35f + (float)Main.rand.Next(-10, 11) * 0.01f;
86085 }
86086 else
86087 {
86088 Main.dust[
num288].scale = 1.2f + (float)Main.rand.Next(-10, 11) * 0.01f;
86089 }
86090 Main.dust[
num288].noGravity =
true;
86093 dust334.velocity *= 2.5f;
86097 }
86098 if (Main.myPlayer ==
owner)
86099 {
86100 int num289 = Main.rand.Next(3, 6);
86101 Vector2
vector35 =
default(Vector2);
86103 {
86104 ((Vector2)(
ref vector35)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
86106 {
86107 ((Vector2)(
ref vector35)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
86108 }
86110 vector35 *= (float)Main.rand.Next(70, 101) * 0.1f;
86112 }
86113 }
86114 }
86116 {
86119 {
86121 Main.dust[
num292].noGravity =
true;
86125 }
86126 }
86128 {
86133 {
86141 }
86143 {
86147 double radians36 = 6.2831854820251465 * Main.rand.NextDouble();
86150 }
86152 {
86156 double radians37 = 6.2831854820251465 * Main.rand.NextDouble();
86159 Main.dust[
num300].noGravity =
true;
86162 dust334.velocity *= 1
f;
86163 }
86165 {
86166 Vector2
val21 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
86171 gore64.velocity *= 0.3f;
86172 Main.gore[
num302].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
86173 Main.gore[
num302].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
86174 }
86175 if (
type == 709 && Main.myPlayer ==
owner)
86176 {
86177 Rectangle
value11 =
default(Rectangle);
86180 {
86182 {
86185 {
86186 Main.projectile[
num303].ai[1] = 1
f;
86187 Main.projectile[
num303].velocity = (base.Center - Main.projectile[
num303].Center) / 5
f;
86188 Main.projectile[
num303].netUpdate =
true;
86189 }
86190 }
86191 }
86193 Main.projectile[
num304].timeLeft = 30 * Main.rand.Next(2, 6);
86195 }
86196 }
86197 if (
owner != Main.myPlayer &&
type == 453 && Main.player[
owner].mount.AbilityActive)
86198 {
86200 }
86202 {
86203 Main.player[
owner].mount.StopAbilityCharge();
86204 }
86206 {
86208 int num305 = Main.rand.Next(5, 9);
86210 {
86211 int num307 = Dust.NewDust(
base.Center, 0, 0, 171, 0
f, 0
f, 100,
default(Color), 1.4f);
86214 dust334.velocity *= 0.8f;
86215 Main.dust[
num307].position = Vector2.Lerp(Main.dust[
num307].position,
base.Center, 0.5f);
86216 Main.dust[
num307].noGravity =
true;
86217 }
86218 if (
owner == Main.myPlayer)
86219 {
86220 Vector2
vector36 = Main.screenPosition +
new Vector2((
float)Main.mouseX, (
float)Main.mouseY);
86221 if (Main.player[
owner].gravDir == -1
f)
86222 {
86223 vector36.Y = (float)(Main.screenHeight - Main.mouseY) + Main.screenPosition.Y;
86224 }
86228 }
86229 }
86231 {
86233 {
86235 Main.dust[
num310].noGravity =
true;
86238 dust334.velocity *= 0.45f;
86241 dust334.velocity +=
velocity * 0.9f;
86242 }
86243 }
86245 {
86246 int num311 = Main.rand.Next(5, 10);
86248 {
86249 int num313 = Dust.NewDust(
base.Center, 0, 0, 220, 0
f, 0
f, 100,
default(Color), 0.5f);
86252 dust334.velocity *= 1.6f;
86253 Main.dust[
num313].velocity.Y -= 1
f;
86254 Main.dust[
num313].position = Vector2.Lerp(Main.dust[
num313].position,
base.Center, 0.5f);
86255 Main.dust[
num313].noGravity =
true;
86256 }
86257 if (
owner == Main.myPlayer &&
type == 639)
86258 {
86261 if (Main.ProjectileUpdateLoopIndex <
nextSlot && Main.ProjectileUpdateLoopIndex != -1)
86262 {
86264 }
86265 Vector2
vector38 =
default(Vector2);
86267 NewProjectile(
GetProjectileSource_FromThis(),
localAI[0],
localAI[1],
vector38.X,
vector38.Y, 640,
damage,
knockBack,
owner, 0
f,
num314);
86268 }
86269 }
86271 {
86272 int num315 = Main.rand.Next(15, 25);
86274 {
86275 int num317 = Dust.NewDust(
base.Center, 0, 0, 60, 0
f, 0
f, 100,
new Color(255, 255, 255, 0), 1.3
f);
86278 dust334.velocity *= 8
f * (0.3f + 0.7f * Main.rand.NextFloat());
86279 Main.dust[
num317].fadeIn = 1.3f + Main.rand.NextFloat() * 0.2f;
86280 Main.dust[
num317].noLight =
true;
86281 Main.dust[
num317].noGravity =
true;
86284 dust334.position += Main.dust[
num317].velocity * 4
f;
86285 }
86286 }
86288 {
86289 int num318 = Main.rand.Next(5, 10);
86291 {
86292 int num321 = Dust.NewDust(
base.Center, 0, 0, 226, 0
f, 0
f, 100,
default(Color), 0.5f);
86295 dust334.velocity *= 1.6f;
86296 Main.dust[
num321].velocity.Y -= 1
f;
86297 Main.dust[
num321].position = Vector2.Lerp(Main.dust[
num321].position,
base.Center, 0.5f);
86298 Main.dust[
num321].noGravity =
true;
86299 }
86300 }
86302 {
86303 int num322 = Main.rand.Next(5, 10);
86305 {
86306 int num324 = Dust.NewDust(
base.Center, 0, 0, 226, 0
f, 0
f, 100,
default(Color), 0.5f);
86309 dust334.velocity *= 1.6f;
86310 Main.dust[
num324].velocity.Y -= 1
f;
86312 Main.dust[
num324].position = Vector2.Lerp(Main.dust[
num324].position,
base.Center, 0.5f);
86313 Main.dust[
num324].noGravity =
true;
86314 }
86315 }
86317 {
86320 {
86321 int num327 = Dust.NewDust(
base.Center, 0, 0, 272, 0
f, 0
f, 0,
default(Color), 0.5f);
86324 dust334.velocity *= 1.6f;
86325 Main.dust[
num327].velocity.Y -= 1
f;
86326 Main.dust[
num327].position = Vector2.Lerp(Main.dust[
num327].position,
base.Center, 0.5f);
86327 }
86328 }
86330 {
86331 int num328 = Main.rand.Next(5, 10);
86333 {
86334 int num331 = Dust.NewDust(
base.Center, 0, 0, 220, 0
f, 0
f, 100,
default(Color), 0.5f);
86337 dust334.velocity *= 1.6f;
86338 Main.dust[
num331].velocity.Y -= 1
f;
86339 Main.dust[
num331].position = Vector2.Lerp(Main.dust[
num331].position,
base.Center, 0.5f);
86340 Main.dust[
num331].noGravity =
true;
86341 }
86342 }
86344 {
86345 int num332 = Main.rand.Next(5, 10);
86347 {
86348 int num334 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100,
default(Color), 0.5f);
86351 dust334.velocity *= 1.6f;
86352 Main.dust[
num334].velocity.Y -= 1
f;
86355 dust334.position -= Vector2.One * 4
f;
86356 Main.dust[
num334].position = Vector2.Lerp(Main.dust[
num334].position,
base.Center, 0.5f);
86357 Main.dust[
num334].noGravity =
true;
86358 }
86359 }
86361 {
86363 int num335 = Main.rand.Next(3, 7);
86365 {
86369 dust334.velocity *= 2
f;
86370 Main.dust[
num337].noGravity =
true;
86371 }
86372 if (Main.myPlayer ==
owner)
86373 {
86374 Rectangle
value12 =
default(Rectangle);
86377 {
86379 {
86382 {
86383 Main.projectile[
num338].ai[1] = 1
f;
86384 Main.projectile[
num338].velocity = (base.Center - Main.projectile[
num338].Center) / 5
f;
86385 Main.projectile[
num338].netUpdate =
true;
86386 }
86387 }
86388 }
86390 }
86391 }
86393 {
86394 int num339 = Main.rand.Next(3, 7);
86396 {
86397 int num342 = Dust.NewDust(
base.Center -
velocity / 2
f, 0, 0, 135, 0
f, 0
f, 100,
default(Color), 2.1f);
86400 dust334.velocity *= 2
f;
86401 Main.dust[
num342].noGravity =
true;
86402 }
86403 }
86405 {
86406 int num343 = Main.rand.Next(3, 7);
86408 {
86409 int num345 = Dust.NewDust(
base.Center -
velocity / 2
f, 0, 0, 182, 0
f, 0
f, 100,
default(Color), 1.6f);
86412 dust334.velocity *= 1.5f;
86413 Main.dust[
num345].noGravity =
true;
86414 }
86415 }
86417 {
86418 int num346 = Main.rand.Next(3, 7);
86420 {
86421 int num348 = Dust.NewDust(
base.Center -
velocity / 2
f, 0, 0, 228, 0
f, 0
f, 100,
default(Color), 2.1f);
86424 dust334.velocity *= 2
f;
86425 Main.dust[
num348].noGravity =
true;
86426 }
86427 }
86429 {
86431 {
86432 int num350 = Dust.NewDust(
base.Center, 10, 10, 27);
86433 Main.dust[
num350].noGravity =
true;
86437 }
86438 }
86440 {
86442 {
86443 int num353 = Dust.NewDust(
base.Center, 10, 10, 27);
86444 Main.dust[
num353].noGravity =
true;
86447 dust334.velocity *= 2
f;
86453 dust334.scale += (float)Main.rand.Next(150) * 0.001f;
86454 }
86455 }
86457 {
86461 position.X -=
width / 2;
86462 position.Y -=
height / 2;
86464 {
86466 }
86468 {
86470 Main.dust[
num356].noGravity =
true;
86473 dust334.velocity *= 3
f;
86477 dust334.velocity *= 2
f;
86478 Main.dust[
num356].noGravity =
true;
86479 }
86481 {
86482 Vector2
val22 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
86487 gore64.velocity *= 0.3f;
86488 Main.gore[
num358].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
86489 Main.gore[
num358].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
86490 }
86492 }
86494 {
86499 {
86501 }
86502 position.X -=
width / 2;
86503 position.Y -=
height / 2;
86506 }
86508 {
86512 position.X -=
width / 2;
86513 position.Y -=
height / 2;
86515 {
86517 }
86519 {
86521 Main.dust[
num361].noGravity =
true;
86524 dust334.velocity *= 2
f;
86528 dust334.velocity *= 1.2f;
86529 Main.dust[
num361].noGravity =
true;
86530 }
86532 {
86533 Vector2
val23 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
86538 gore64.velocity *= 0.3f;
86539 Main.gore[
num365].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
86540 Main.gore[
num365].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
86541 }
86543 }
86545 {
86548 {
86550 {
86552 Main.dust[
num367].color = Main.hslToRgb(Main.rand.NextFloat(), 1
f, 0.5f);
86553 Main.dust[
num367].noGravity =
true;
86554 }
86555 }
86556 }
86558 {
86562 if (
owner == Main.myPlayer)
86563 {
86564 int num368 = Main.rand.Next(20, 31);
86565 Vector2
vector40 =
default(Vector2);
86567 {
86568 ((Vector2)(
ref vector40)).
_002Ector((
float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101));
86570 vector40 *= (float)Main.rand.Next(10, 201) * 0.01f;
86572 }
86573 }
86574 }
86576 {
86579 {
86581 }
86582 if (Main.netMode != 1)
86583 {
86585 {
86586 case 868:
86587 WorldGen.TreeTops.RandomizeTreeStyleBasedOnWorldPosition(Main.rand,
base.Center);
86588 break;
86589 case 869:
86590 WorldGen.RandomizeBackgroundBasedOnPlayer(Main.rand, Main.player[
owner]);
86591 break;
86592 case 996:
86594 break;
86595 }
86596 NetMessage.SendData(7);
86597 }
86598 }
86599 else if (
type == 836)
86600 {
86602 {
86606 dust334.velocity *= 0.5f;
86607 Main.dust[
num372].noGravity =
true;
86608 }
86609 }
86611 {
86613 {
86614 int num374 = Dust.NewDust(
base.Center - Vector2.One * 10
f, 50, 50, 5, 0
f, -2
f);
86617 dust334.velocity /= 2
f;
86618 }
86624 gore64.timeLeft /=
num377;
86628 gore64.timeLeft /=
num377;
86632 gore64.timeLeft /=
num377;
86633 }
86635 {
86639 {
86647 Main.dust[
num380].noGravity =
true;
86648 Main.dust[
num380].noLight =
true;
86650 }
86651 if (
owner == Main.myPlayer)
86652 {
86654 {
86655 int num381 = (Main.expertMode ? 25 : 40);
86656 int num382 =
NewProjectile(
GetProjectileSource_FromThis(),
base.Center.X - (
float)(
direction * 30),
base.Center.Y - 4
f, (
float)(-
direction) * 0.01f, 0
f, 384,
num381, 4
f,
owner, 16
f, 15
f);
86657 Main.projectile[
num382].netUpdate =
true;
86658 }
86659 else
86660 {
86665 {
86667 }
86668 if (
num384 > Main.maxTilesX - 10)
86669 {
86670 num384 = Main.maxTilesX - 10;
86671 }
86673 {
86675 }
86677 {
86679 }
86683 {
86685 if (tile.active() && (Main.tileSolid[tile.type] || tile.liquid != 0))
86686 {
86688 break;
86689 }
86690 }
86692 int num390 = (Main.expertMode ? 50 : 80);
86693 int num391 =
NewProjectile(
GetProjectileSource_FromThis(),
num384 * 16 + 8,
num383 * 16 - 24, 0
f, 0
f, 386,
num390, 4
f, Main.myPlayer, 16
f, 24
f);
86694 Main.projectile[
num391].netUpdate =
true;
86695 }
86696 }
86697 }
86698 else if (
type >= 424 &&
type <= 426)
86699 {
86701 position.X +=
width / 2;
86702 position.Y +=
height / 2;
86705 position.X -=
width / 2;
86706 position.Y -=
height / 2;
86708 {
86710 }
86712 {
86714 Main.dust[
num394].noGravity =
true;
86717 dust334.velocity *= 3
f;
86721 dust334.velocity *= 2
f;
86722 Main.dust[
num394].noGravity =
true;
86723 }
86725 {
86726 Vector2
val24 =
position +
new Vector2((
float)(
width * Main.rand.Next(100)) / 100
f, (
float)(
height * Main.rand.Next(100)) / 100
f) - Vector2.One * 10
f;
86731 gore64.velocity *= 0.3f;
86732 Main.gore[
num396].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
86733 Main.gore[
num396].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
86734 }
86735 if (
owner == Main.myPlayer)
86736 {
86740 }
86742 {
86743 int num399 = Utils.SelectRandom<
int>(Main.rand, 6, 259, 158);
86745 Main.dust[
num400].alpha = 200;
86748 dust334.velocity *= 2.4f;
86751 dust334.scale += Main.rand.NextFloat();
86752 }
86753 }
86755 {
86757 Vector2
vector42 =
default(Vector2);
86760 {
86762 }
86764 {
86768 dust334.velocity *= 1.4f;
86769 }
86771 {
86773 Main.dust[
num405].noGravity =
true;
86776 dust334.velocity *= 5
f;
86780 dust334.velocity *= 3
f;
86781 }
86782 if (Main.myPlayer ==
owner)
86783 {
86785 {
86786 float num407 = (0
f -
velocity.X) * (
float)Main.rand.Next(20, 50) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
86787 float num409 = (0
f -
Math.Abs(
velocity.Y)) * (
float)Main.rand.Next(30, 50) * 0.01f + (float)Main.rand.Next(-20, 5) * 0.4f;
86789 }
86790 }
86791 }
86793 {
86795 {
86798 dust298.color = Color.CornflowerBlue;
86799 dust298.color = Color.Lerp(
dust298.color, Color.White, 0.3f);
86800 dust298.noGravity = true;
86801 }
86802 }
86804 {
86811 {
86819 dust334.velocity *= 0.5f;
86820 Main.dust[
num413].noGravity =
true;
86822 }
86823 }
86825 {
86831 {
86839 dust334.velocity *= 0.5f;
86840 Main.dust[
num415].noGravity =
true;
86842 }
86843 }
86845 {
86850 {
86852 Main.dust[
num417].color =
new Color(10, 10, 10, 150);
86859 dust334.velocity *= 0.5f;
86860 Main.dust[
num417].noGravity =
true;
86862 }
86863 }
86865 {
86868 {
86870 }
86871 }
86873 {
86875 {
86877 Main.dust[
num421].noGravity =
true;
86879 }
86880 }
86882 {
86885 {
86889 if (Main.rand.Next(2) == 0)
86890 {
86893 dust334.alpha += 25;
86894 }
86895 if (Main.rand.Next(2) == 0)
86896 {
86899 dust334.alpha += 25;
86900 }
86901 if (Main.rand.Next(2) == 0)
86902 {
86905 dust334.alpha += 25;
86906 }
86907 if (Main.rand.Next(2) == 0)
86908 {
86909 Main.dust[
num423].scale = 0.6f;
86910 }
86911 else
86912 {
86913 Main.dust[
num423].noGravity =
true;
86914 }
86917 dust334.velocity *= 0.3f;
86923 dust334.velocity *= 1
f + (float)Main.rand.Next(-100, 101) * 0.01f;
86924 Main.dust[
num423].velocity.X += (float)Main.rand.Next(-50, 51) * 0.015f;
86925 Main.dust[
num423].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.015f;
86927 }
86928 }
86930 {
86936 {
86940 if (Main.rand.Next(2) == 0)
86941 {
86944 dust334.alpha += 25;
86945 }
86946 if (Main.rand.Next(2) == 0)
86947 {
86950 dust334.alpha += 25;
86951 }
86952 if (Main.rand.Next(2) == 0)
86953 {
86956 dust334.alpha += 25;
86957 }
86958 if (Main.rand.Next(2) == 0)
86959 {
86960 Main.dust[
num426].scale = 0.6f;
86961 }
86962 else
86963 {
86964 Main.dust[
num426].noGravity =
true;
86965 }
86968 dust334.velocity *= 0.3f;
86974 dust334.velocity *= 1
f + (float)Main.rand.Next(-100, 101) * 0.01f;
86975 Main.dust[
num426].velocity.X += (float)Main.rand.Next(-50, 51) * 0.015f;
86976 Main.dust[
num426].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.015f;
86978 }
86979 }
86981 {
86983 {
86985 Main.dust[
num428].noGravity =
true;
86986 Main.dust[
num428].velocity.X *= 0.75f;
86987 Main.dust[
num428].velocity.Y *= 0.75f;
86990 dust334.velocity -=
velocity * 0.025f;
86991 }
86992 }
86993 else if (
type == 343)
86994 {
86997 {
87001 Main.dust[
num433].noGravity =
true;
87004 dust334.velocity *= 0.5f;
87005 }
87006 }
87007 else if (
type == 349)
87008 {
87011 {
87013 Main.dust[
num435].noGravity =
true;
87014 Main.dust[
num435].noLight =
true;
87015 Main.dust[
num435].scale = 0.7f;
87016 }
87017 }
87019 {
87022 {
87024 if (Main.rand.Next(2) == 0)
87025 {
87026 Main.dust[
num437].noGravity =
true;
87027 Main.dust[
num437].scale = 1.3f;
87030 dust334.velocity *= 1.5f;
87036 dust334.velocity *= 1.5f;
87037 }
87038 else
87039 {
87042 dust334.velocity *= 0.75f;
87046 Main.dust[
num437].scale = 0.8f;
87047 }
87048 }
87049 }
87051 {
87055 {
87057 }
87059 {
87061 }
87063 {
87065 }
87067 {
87069 }
87072 {
87076 dust334.velocity *= 1
f + Main.rand.NextFloat() * 1
f;
87078 {
87079 Main.dust[
num439].noGravity =
true;
87082 dust334.velocity *= 0.5f;
87083 }
87084 }
87085 }
87087 {
87090 {
87093 {
87095 }
87097 Main.dust[
num443].noGravity =
true;
87098 }
87099 }
87101 {
87104 {
87107 Main.dust[
num446].noLight =
true;
87108 Main.dust[
num446].scale = 0.8f;
87109 }
87110 }
87112 {
87115 {
87117 if (Main.rand.Next(2) == 0)
87118 {
87119 Main.dust[
num448].noGravity =
true;
87120 }
87121 }
87122 }
87124 {
87126 {
87128 if (Main.rand.Next(2) == 0)
87129 {
87130 Main.dust[
num450].noGravity =
true;
87131 }
87132 }
87133 }
87134 else if (
type == 311)
87135 {
87137 {
87139 Main.dust[
num453].scale = 0.85f;
87140 Main.dust[
num453].noGravity =
true;
87143 dust334.velocity +=
velocity * 0.5f;
87144 }
87145 }
87146 else if (
type == 316)
87147 {
87149 {
87151 Main.dust[
num455].scale = 0.85f;
87152 Main.dust[
num455].noGravity =
true;
87155 dust334.velocity +=
velocity * 0.5f;
87156 }
87157 }
87158 else if (
type == 184 ||
type == 195)
87159 {
87162 {
87164 }
87165 }
87166 else if (
type == 275 ||
type == 276)
87167 {
87170 {
87172 }
87173 }
87174 else if (
type == 291)
87175 {
87176 if (
owner == Main.myPlayer)
87177 {
87179 }
87180 }
87181 else if (
type == 295)
87182 {
87183 if (
owner == Main.myPlayer)
87184 {
87186 }
87187 }
87188 else if (
type == 270 ||
type == 837)
87189 {
87192 {
87194 {
87196 Main.dust[
num459].noGravity =
true;
87199 dust334.velocity *= 1.2f;
87200 Main.dust[
num459].scale = 1.3f;
87205 Main.dust[
num459].noGravity =
true;
87208 dust334.velocity *= 3
f;
87209 }
87210 }
87211 else
87212 {
87214 {
87216 Main.dust[
num461].noGravity =
true;
87219 dust334.velocity *= 1.2f;
87220 Main.dust[
num461].scale = 1.3f;
87225 Main.dust[
num461].noGravity =
true;
87228 dust334.velocity *= 3
f;
87229 }
87230 }
87231 }
87232 else if (
type == 265)
87233 {
87235 {
87237 Main.dust[
num464].noGravity =
true;
87240 dust334.velocity *= 1.2f;
87244 }
87245 }
87246 else if (
type == 355)
87247 {
87249 {
87251 Main.dust[
num466].noGravity =
true;
87254 dust334.velocity *= 1.2f;
87258 }
87259 }
87260 else if (
type == 304)
87261 {
87263 {
87265 Main.dust[
num468].noGravity =
true;
87268 dust334.velocity *= 1.2f;
87272 }
87273 }
87274 else if (
type == 263)
87275 {
87278 {
87279 int num470 = Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 92,
velocity.X,
velocity.Y, Main.rand.Next(0, 101),
default(Color), 1
f + (
float)Main.rand.Next(40) * 0.01f);
87280 Main.dust[
num470].noGravity =
true;
87283 dust334.velocity *= 2
f;
87284 }
87285 }
87286 else if (
type == 261)
87287 {
87290 {
87294 dust334.velocity *= 2
f;
87295 dust299.velocity.Y -= 0.4f;
87296 }
87298 {
87302 dust334.velocity *= 2
f;
87303 dust300.noLight = true;
87306 dust334.scale *= 0.8f;
87307 dust300.velocity.Y -= 0.3f;
87308 }
87309 }
87310 else if (
type == 928)
87311 {
87314 {
87316 }
87317 }
87318 else if (
type == 229)
87319 {
87321 {
87323 Main.dust[
num477].noGravity =
true;
87326 dust334.velocity *= 1.5f;
87327 Main.dust[
num477].scale = 1.5f;
87328 }
87329 }
87330 else if (
type == 239)
87331 {
87333 {
87335 Main.dust[
num478].position.X -= 2
f;
87336 Main.dust[
num478].alpha = 38;
87339 dust334.velocity *= 0.1f;
87343 Main.dust[
num478].scale = 0.95f;
87344 }
87345 }
87346 else if (
type == 245)
87347 {
87349 {
87351 Main.dust[
num479].noGravity =
true;
87352 Main.dust[
num479].position.X -= 2
f;
87353 Main.dust[
num479].alpha = 38;
87356 dust334.velocity *= 0.1f;
87360 Main.dust[
num479].scale = 0.95f;
87361 }
87362 }
87363 else if (
type == 264)
87364 {
87366 {
87368 Main.dust[
num480].noGravity =
true;
87369 Main.dust[
num480].position.X -= 2
f;
87370 Main.dust[
num480].alpha = 38;
87373 dust334.velocity *= 0.1f;
87377 Main.dust[
num480].scale = 0.95f;
87378 }
87379 }
87380 else if (
type == 206 ||
type == 225)
87381 {
87384 {
87386 }
87387 }
87388 else if (
type == 227)
87389 {
87392 {
87394 Main.dust[
num483].noGravity =
true;
87397 dust334.velocity +=
oldVelocity * Main.rand.NextFloat();
87398 Main.dust[
num483].scale = 1.5f;
87399 }
87400 }
87401 else if (
type == 237 &&
owner == Main.myPlayer)
87402 {
87404 }
87405 else if (
type == 243 &&
owner == Main.myPlayer)
87406 {
87408 }
87409 else if (
type == 120)
87410 {
87413 {
87416 {
87417 Main.dust[
num485].noGravity =
true;
87418 }
87421 dust334.velocity *= 0.2f;
87422 }
87423 }
87425 {
87427 {
87429 Main.dust[
num488].noGravity =
true;
87430 Main.dust[
num488].scale = 1
f;
87431 }
87432 }
87433 else if (
type == 178)
87434 {
87436 {
87437 int num490 = Main.rand.Next(139, 143);
87439 Main.dust[
num491].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
87440 Main.dust[
num491].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
87441 Main.dust[
num491].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87442 Main.dust[
num491].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87443 Main.dust[
num491].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
87444 Main.dust[
num491].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
87447 dust334.scale *= 1
f + (float)Main.rand.Next(-30, 31) * 0.01f;
87448 }
87450 {
87451 int num493 = Main.rand.Next(276, 283);
87453 Main.gore[
num494].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
87454 Main.gore[
num494].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
87455 Main.gore[
num494].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87456 Main.gore[
num494].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87459 gore64.scale *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
87460 Main.gore[
num494].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
87461 Main.gore[
num494].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
87462 }
87463 }
87464 else if (
type == 289)
87465 {
87467 {
87468 int num496 = Main.rand.Next(139, 143);
87470 Main.dust[
num498].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
87471 Main.dust[
num498].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
87472 Main.dust[
num498].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87473 Main.dust[
num498].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87474 Main.dust[
num498].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
87475 Main.dust[
num498].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
87478 dust334.scale *= 1
f + (float)Main.rand.Next(-30, 31) * 0.01f;
87479 }
87481 {
87482 int num500 = Main.rand.Next(276, 283);
87484 Main.gore[
num501].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
87485 Main.gore[
num501].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
87486 Main.gore[
num501].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87487 Main.gore[
num501].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
87490 gore64.scale *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
87491 Main.gore[
num501].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
87492 Main.gore[
num501].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
87493 }
87494 }
87496 {
87498 {
87500 }
87502 {
87503 Vector2
vector50 =
default(Vector2);
87509 {
87511 }
87515 {
87517 }
87522 {
87526 {
87528 }
87535 {
87537 }
87539 {
87541 }
87543 {
87545 {
87547 Main.dust[
num515].noGravity =
true;
87550 dust334.velocity *= 0.3f;
87551 }
87552 }
87559 }
87560 }
87561 }
87562 else if (
type == 171)
87563 {
87565 {
87567 }
87569 {
87570 Vector2
vector51 =
default(Vector2);
87576 {
87578 }
87582 {
87584 }
87589 {
87593 {
87595 }
87601 {
87603 {
87605 Main.dust[
num528].noGravity =
true;
87608 dust334.velocity *= 0.3f;
87609 }
87610 }
87617 }
87618 }
87619 }
87620 else if (
type == 117)
87621 {
87624 {
87626 }
87627 }
87628 else if (
type == 166)
87629 {
87632 {
87634 Main.dust[
num532].noGravity =
true;
87638 }
87639 }
87640 else if (
type == 158)
87641 {
87644 {
87646 Main.dust[
num534].noGravity =
true;
87649 dust334.velocity -=
velocity * 0.5f;
87650 }
87651 }
87652 else if (
type == 159)
87653 {
87656 {
87658 Main.dust[
num536].noGravity =
true;
87661 dust334.velocity -=
velocity * 0.5f;
87662 }
87663 }
87664 else if (
type == 160)
87665 {
87668 {
87670 Main.dust[
num538].noGravity =
true;
87673 dust334.velocity -=
velocity * 0.5f;
87674 }
87675 }
87676 else if (
type == 161)
87677 {
87680 {
87682 Main.dust[
num540].noGravity =
true;
87685 dust334.velocity -=
velocity * 0.5f;
87686 }
87687 }
87688 else if (
type >= 191 &&
type <= 194)
87689 {
87693 gore64.velocity *= 0.1f;
87694 }
87695 else if (!Main.projPet[
type])
87696 {
87698 {
87701 {
87703 Main.dust[
num544].noGravity =
true;
87704 Main.dust[
num544].fadeIn = 1
f;
87705 Main.dust[
num544].velocity.X *= 2
f;
87706 Main.dust[
num544].velocity.Y *= 2
f;
87707 Main.dust[
num544].velocity.Y -= Main.rand.NextFloat() * 1.5f;
87708 }
87709 }
87711 {
87714 {
87715 1013 => 243,
87716 727 => 40,
87717 1014 => 12,
87718 1021 => 323,
87720 };
87723 {
87725 if (Main.rand.Next(2) == 0)
87726 {
87729 dust334.scale *= 1.4f;
87730 }
87732 }
87733 if (
type == 1014 &&
owner == Main.myPlayer)
87734 {
87736 if (Main.netMode == 1)
87737 {
87738 NetMessage.SendData(21, -1, -1,
null,
number, 1
f);
87739 }
87740 }
87741 }
87742 else if (
type == 1005)
87743 {
87746 {
87748 if (Main.rand.Next(2) == 0)
87749 {
87752 dust334.scale *= 1.1f;
87753 }
87755 }
87756 }
87757 else if (
type == 772)
87758 {
87761 {
87764 }
87766 {
87767 Dust
dust301 = Dust.NewDustDirect(
position,
width,
height, Main.rand.NextFromList<
int>(86, 87, 88, 89, 90), 0
f, 0
f, 0,
default(Color), 0.7f);
87768 dust301.noGravity = true;
87771 dust334.velocity *= 2.9f;
87772 dust301.velocity.Y *= 0.8f;
87773 dust301.fadeIn = 1.1f;
87774 }
87776 {
87777 Dust
dust302 = Dust.NewDustDirect(
position,
width,
height, Main.rand.NextFromList<
int>(86, 87, 88, 89, 90), 0
f, 0
f, 0,
default(Color), 0.7f);
87778 dust302.noGravity = true;
87781 dust334.velocity *= 2.9f;
87782 dust302.velocity.Y *= 0.8f;
87783 dust302.fadeIn = 1.1f;
87784 dust302.noLight = true;
87785 }
87786 if (
owner == Main.myPlayer)
87787 {
87789 }
87790 }
87791 else if (
type == 763)
87792 {
87794 {
87796 if (Main.rand.Next(2) == 0)
87797 {
87800 dust334.scale *= 0.8f;
87801 }
87802 Main.dust[
num555].noGravity =
true;
87804 }
87805 }
87806 else if (
type == 655)
87807 {
87810 {
87812 if (Main.rand.Next(2) == 0)
87813 {
87816 dust334.scale *= 1.4f;
87817 }
87819 }
87820 if (Main.netMode != 1 && !
wet)
87821 {
87823 if (Main.rand.Next(3) == 0)
87824 {
87826 }
87827 if (Main.rand.Next(3) == 0)
87828 {
87830 }
87831 if (Main.rand.Next(3) == 0)
87832 {
87834 }
87837 {
87838 int num560 = Main.rand.Next(210, 212);
87840 Main.npc[
num561].velocity.X = (float)Main.rand.Next(-200, 201) * 0.002f;
87841 Main.npc[
num561].velocity.Y = (float)Main.rand.Next(-200, 201) * 0.002f;
87842 Main.npc[
num561].netUpdate =
true;
87843 }
87844 }
87845 }
87846 else if (
type == 728)
87847 {
87850 {
87852 }
87854 {
87856 Vector2
unitY11 = Vector2.UnitY;
87860 }
87862 {
87864 Vector2
unitY12 = Vector2.UnitY;
87868 }
87869 Vector2
vector52 =
default(Vector2);
87872 if (((Rectangle)(
ref val6)).Intersects(Utils.CenteredRectangle(Main.screenPosition +
vector52 / 2
f,
vector52 +
new Vector2(400
f))))
87873 {
87875 {
87876 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) * ((Vector2)(
ref velocity)).Length(), Utils.SelectRandom<
int>(Main.rand, 16, 17, 17, 17, 17, 17, 17, 17));
87877 }
87878 }
87879 }
87880 else if (
type == 729)
87881 {
87884 {
87886 dust303.noGravity = true;
87887 dust303.velocity.X *= 2
f;
87888 }
87889 }
87891 {
87893 {
87896 {
87898 dust304.noGravity = true;
87899 dust304.velocity.X *= 2
f;
87900 }
87902 {
87903 Gore
gore57 = Gore.NewGoreDirect(
position,
new Vector2(
velocity.X * 0.05f,
velocity.Y * 0.05f), Utils.SelectRandom<
int>(Main.rand, 16, 17, 17));
87906 gore64.velocity *= 2
f;
87907 }
87908 if (
owner == Main.myPlayer && Main.player[
owner].starCloakCooldown == 0)
87909 {
87910 Main.player[
owner].starCloakCooldown = 60;
87912 if (Main.netMode == 1)
87913 {
87914 NetMessage.SendData(21, -1, -1,
null,
number2, 1
f);
87915 }
87916 }
87917 }
87918 else
87919 {
87921 {
87923 }
87924 else
87925 {
87927 }
87929 {
87932 {
87935 dust334.velocity *= 0.75f;
87936 }
87937 }
87939 {
87942 {
87945 gore64.velocity *= 0.5f;
87946 }
87947 }
87948 }
87949 }
87950 else if (
type == 91 ||
type == 92)
87951 {
87954 {
87956 }
87958 {
87960 }
87962 {
87963 float x = position.X + (float)Main.rand.Next(-400, 400);
87964 float y = position.Y - (float)Main.rand.Next(600, 900);
87965 Vector2
vector53 =
default(Vector2);
87976 {
87978 }
87981 {
87983 Main.projectile[
num580].ai[0] = 1
f;
87984 }
87985 else
87986 {
87988 }
87989 }
87990 }
87991 else if (
type == 89)
87992 {
87995 {
87997 Main.dust[
num582].noGravity =
true;
88000 dust334.velocity *= 1.5f;
88003 dust334.scale *= 0.9f;
88004 }
88005 if (
type == 89 &&
owner == Main.myPlayer)
88006 {
88008 {
88009 float num584 = (0
f -
velocity.X) * (
float)Main.rand.Next(40, 70) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
88010 float num587 = (0
f -
velocity.Y) * (
float)Main.rand.Next(40, 70) * 0.01f + (float)Main.rand.Next(-20, 21) * 0.4f;
88012 }
88013 }
88014 }
88015 else if (
type == 967)
88016 {
88019 {
88020 int num589 = Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 219,
velocity.X,
velocity.Y, 0,
default(Color), 0.5f + (
float)Main.rand.Next(-20, 40) * 0.01f);
88021 Main.dust[
num589].noGravity =
true;
88022 Main.dust[
num589].velocity = Main.rand.NextVector2Circular(6
f, 6
f);
88023 }
88024 }
88025 else if (
type == 969)
88026 {
88029 {
88030 activeSound2.Volume = 0
f;
88032 }
88033 }
88034 else if (
type == 177)
88035 {
88037 {
88038 int num591 = Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 137, 0
f, 0
f, Main.rand.Next(0, 101),
default(Color), 1
f + (
float)Main.rand.Next(-20, 40) * 0.01f);
88042 if (Main.rand.Next(3) == 0)
88043 {
88046 dust334.scale *= 0.8f;
88049 dust334.velocity *= 0.5f;
88050 }
88051 else
88052 {
88053 Main.dust[
num591].noGravity =
true;
88054 }
88055 }
88056 }
88058 {
88061 {
88063 }
88066 {
88068 if (Main.rand.Next(3) != 0)
88069 {
88072 dust334.velocity *= 2
f;
88073 Main.dust[
num594].noGravity =
true;
88076 dust334.scale *= 1.75f;
88077 }
88078 else
88079 {
88082 dust334.scale *= 0.5f;
88083 }
88084 }
88085 }
88086 else if (
type == 309)
88087 {
88091 {
88093 if (Main.rand.Next(2) == 0)
88094 {
88097 dust334.velocity *= 2
f;
88098 Main.dust[
num598].noGravity =
true;
88101 dust334.scale *= 1.75f;
88102 }
88103 }
88104 }
88105 else if (
type == 308)
88106 {
88110 {
88114 dust334.velocity *= 2
f;
88115 Main.dust[
num601].noGravity =
true;
88118 dust334.scale *= 1.15f;
88119 }
88120 }
88122 {
88126 {
88128 Main.dust[
num604].noGravity =
true;
88131 dust334.scale *= 1.25f;
88134 dust334.velocity *= 0.5f;
88135 }
88136 }
88137 else if (
type == 597)
88138 {
88141 {
88143 Main.dust[
num606].noGravity =
true;
88146 dust334.scale *= 1.25f;
88149 dust334.velocity *= 0.5f;
88150 }
88151 }
88152 else if (
type == 731)
88153 {
88156 {
88158 if (Main.rand.Next(3) != 0)
88159 {
88160 dust307.noGravity = true;
88163 dust334.scale *= 1.5f;
88166 dust334.velocity *= 0.5f;
88167 }
88168 }
88169 }
88170 else if (
type == 337)
88171 {
88174 {
88176 Main.dust[
num610].noGravity =
true;
88177 }
88178 }
88179 else if (
type == 379 ||
type == 377)
88180 {
88182 {
88184 Main.dust[
num612].scale = (float)Main.rand.Next(1, 10) * 0.1f;
88185 Main.dust[
num612].noGravity =
true;
88186 Main.dust[
num612].fadeIn = 1.5f;
88189 dust334.velocity *= 0.75f;
88190 }
88191 }
88192 else if (
type == 80)
88193 {
88195 {
88198 {
88200 }
88201 }
88205 {
88207 }
88209 {
88211 }
88212 }
88214 {
88216 {
88218 Main.dust[
num617].noGravity =
true;
88219 }
88220 }
88221 else if (
type == 55 ||
type == 719)
88222 {
88224 {
88226 Main.dust[
num620].noGravity =
true;
88227 }
88228 }
88229 else if (
type == 51 ||
type == 267)
88230 {
88233 {
88235 }
88236 }
88237 else if (
type == 478)
88238 {
88239 if (
owner == Main.myPlayer)
88240 {
88242 }
88243 }
88244 else if (
type == 477 ||
type == 479)
88245 {
88247 {
88248 }
88250 }
88252 {
88255 {
88257 }
88258 }
88259 else if (
type == 474)
88260 {
88263 {
88265 }
88266 }
88267 else if (
type == 172)
88268 {
88271 {
88273 }
88274 }
88275 else if (
type == 103)
88276 {
88279 {
88281 if (Main.rand.Next(2) == 0)
88282 {
88285 dust334.scale *= 2.5f;
88286 Main.dust[
num627].noGravity =
true;
88289 dust334.velocity *= 5
f;
88290 }
88291 }
88292 }
88293 else if (
type == 278)
88294 {
88297 {
88299 if (Main.rand.Next(2) == 0)
88300 {
88303 dust334.scale *= 1.5f;
88304 Main.dust[
num629].noGravity =
true;
88307 dust334.velocity *= 5
f;
88308 }
88309 }
88310 }
88312 {
88315 {
88317 }
88318 }
88319 else if (
type == 330)
88320 {
88323 {
88325 }
88326 }
88327 else if (
type == 4)
88328 {
88331 {
88333 }
88334 }
88335 else if (
type == 5)
88336 {
88339 {
88340 int num1030 = Main.rand.Next(3);
88342 {
88343 0 => 15,
88344 1 => 57,
88346 }, velocity.X * 0.5f, velocity.Y * 0.5f, 150,
default(Color), 1.5
f);
88347 }
88348 }
88350 {
88353 {
88354 Color
newColor7 = Color.CornflowerBlue;
88355 if (Main.tenthAnniversaryWorld && (
type == 12 ||
type == 955))
88356 {
88360 }
88362 {
88364 }
88366 {
88368 Vector2
unitY13 = Vector2.UnitY;
88372 }
88374 {
88376 Vector2
unitY14 = Vector2.UnitY;
88380 }
88381 Vector2
vector54 =
default(Vector2);
88384 if (((Rectangle)(
ref val6)).Intersects(Utils.CenteredRectangle(Main.screenPosition +
vector54 / 2
f,
vector54 +
new Vector2(400
f))))
88385 {
88387 {
88388 Gore.NewGore(
position, Main.rand.NextVector2CircularEdge(0.5f, 0.5f) * ((Vector2)(
ref velocity)).Length(), Utils.SelectRandom<
int>(Main.rand, 16, 17, 17, 17, 17, 17, 17, 17));
88389 }
88390 }
88391 }
88392 else
88393 {
88397 {
88401 }
88403 {
88405 }
88407 {
88408 int num644 = Main.rand.Next(16, 18);
88410 {
88412 }
88414 }
88416 {
88418 {
88420 }
88422 {
88424 }
88425 }
88426 }
88427 }
88428 else if (
type == 281)
88429 {
88431 {
88433 int num647 = Gore.NewGore(
position,
new Vector2((
float)Main.rand.Next(-20, 21) * 0.2f, (float)Main.rand.Next(-20, 21) * 0.2f), 76);
88436 gore64.velocity -=
velocity * 0.5f;
88437 num647 = Gore.NewGore(
new Vector2(
position.X,
position.Y),
new Vector2((
float)Main.rand.Next(-20, 21) * 0.2f, (
float)Main.rand.Next(-20, 21) * 0.2f), 77);
88440 gore64.velocity -=
velocity * 0.5f;
88443 {
88447 dust334.velocity *= 1.4f;
88448 }
88450 {
88452 Main.dust[
num652].noGravity =
true;
88455 dust334.velocity *= 5
f;
88459 dust334.velocity *= 3
f;
88460 }
88466 gore64.velocity *= 0.4f;
88467 Main.gore[
num647].velocity.X += 1
f;
88468 Main.gore[
num647].velocity.Y += 1
f;
88474 gore64.velocity *= 0.4f;
88475 Main.gore[
num647].velocity.X -= 1
f;
88476 Main.gore[
num647].velocity.Y += 1
f;
88482 gore64.velocity *= 0.4f;
88483 Main.gore[
num647].velocity.X += 1
f;
88484 Main.gore[
num647].velocity.Y -= 1
f;
88490 gore64.velocity *= 0.4f;
88491 Main.gore[
num647].velocity.X -= 1
f;
88492 Main.gore[
num647].velocity.Y -= 1
f;
88494 {
88495 position.X +=
width / 2;
88496 position.Y +=
height / 2;
88499 position.X -=
width / 2;
88500 position.Y -=
height / 2;
88502 {
88504 }
88506 }
88507 }
88508 }
88509 else if (
type == 162)
88510 {
88513 {
88517 dust334.velocity *= 1.4f;
88518 }
88520 {
88522 Main.dust[
num656].noGravity =
true;
88525 dust334.velocity *= 5
f;
88529 dust334.velocity *= 3
f;
88530 }
88536 gore64.velocity *= 0.4f;
88537 Main.gore[
num657].velocity.X += 1
f;
88538 Main.gore[
num657].velocity.Y += 1
f;
88544 gore64.velocity *= 0.4f;
88545 Main.gore[
num657].velocity.X -= 1
f;
88546 Main.gore[
num657].velocity.Y += 1
f;
88552 gore64.velocity *= 0.4f;
88553 Main.gore[
num657].velocity.X += 1
f;
88554 Main.gore[
num657].velocity.Y -= 1
f;
88560 gore64.velocity *= 0.4f;
88561 Main.gore[
num657].velocity.X -= 1
f;
88562 Main.gore[
num657].velocity.Y -= 1
f;
88563 position.X +=
width / 2;
88564 position.Y +=
height / 2;
88567 position.X -=
width / 2;
88568 position.Y -=
height / 2;
88570 }
88571 else if (
type == 240)
88572 {
88575 {
88579 dust334.velocity *= 1.4f;
88580 }
88582 {
88584 Main.dust[
num661].noGravity =
true;
88587 dust334.velocity *= 5
f;
88591 dust334.velocity *= 3
f;
88592 }
88598 gore64.velocity *= 0.4f;
88599 Main.gore[
num663].velocity.X += 1
f;
88600 Main.gore[
num663].velocity.Y += 1
f;
88606 gore64.velocity *= 0.4f;
88607 Main.gore[
num663].velocity.X -= 1
f;
88608 Main.gore[
num663].velocity.Y += 1
f;
88614 gore64.velocity *= 0.4f;
88615 Main.gore[
num663].velocity.X += 1
f;
88616 Main.gore[
num663].velocity.Y -= 1
f;
88622 gore64.velocity *= 0.4f;
88623 Main.gore[
num663].velocity.X -= 1
f;
88624 Main.gore[
num663].velocity.Y -= 1
f;
88625 position.X +=
width / 2;
88626 position.Y +=
height / 2;
88629 position.X -=
width / 2;
88630 position.Y -=
height / 2;
88632 }
88633 else
88634 {
88637 {
88640 {
88642 Main.dust[
num665].scale = (float)Main.rand.Next(1, 10) * 0.1f;
88643 Main.dust[
num665].noGravity =
true;
88644 Main.dust[
num665].fadeIn = 1.5f;
88647 dust334.velocity *= 0.75f;
88648 }
88649 }
88650 else if (
type == 284)
88651 {
88653 {
88654 int num667 = Main.rand.Next(139, 143);
88656 Main.dust[
num668].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
88657 Main.dust[
num668].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
88658 Main.dust[
num668].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
88659 Main.dust[
num668].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
88660 Main.dust[
num668].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
88661 Main.dust[
num668].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
88664 dust334.scale *= 1
f + (float)Main.rand.Next(-30, 31) * 0.01f;
88665 }
88667 {
88668 int num670 = Main.rand.Next(276, 283);
88670 Main.gore[
num671].velocity.X += (float)Main.rand.Next(-50, 51) * 0.01f;
88671 Main.gore[
num671].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.01f;
88672 Main.gore[
num671].velocity.X *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
88673 Main.gore[
num671].velocity.Y *= 1
f + (float)Main.rand.Next(-50, 51) * 0.01f;
88676 gore64.scale *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
88677 Main.gore[
num671].velocity.X += (float)Main.rand.Next(-50, 51) * 0.05f;
88678 Main.gore[
num671].velocity.Y += (float)Main.rand.Next(-50, 51) * 0.05f;
88679 }
88680 }
88681 else if (
type == 286)
88682 {
88685 {
88687 }
88689 {
88691 Main.dust[
num676].noGravity =
true;
88694 dust334.velocity *= 3
f;
88698 dust334.velocity *= 2
f;
88699 }
88705 gore64.velocity *= 0.3f;
88706 Main.gore[
num677].velocity.X += (float)Main.rand.Next(-10, 11) * 0.05f;
88707 Main.gore[
num677].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.05f;
88708 if (
owner == Main.myPlayer)
88709 {
88712 position.X +=
width / 2;
88713 position.Y +=
height / 2;
88716 position.X -=
width / 2;
88717 position.Y -=
height / 2;
88719 }
88720 }
88722 {
88725 }
88726 else if (
type == 981)
88727 {
88731 {
88732 PositionInWorld =
base.Center,
88733 MovementVector = Vector2.Zero
88735 }
88736 else if (
type == 1006)
88737 {
88740 float num678 = Main.rand.NextFloat() * ((float)
Math.PI * 2
f);
88742 {
88744 Vector2
unitX2 = Vector2.UnitX;
88751 {
88752 PositionInWorld =
center,
88755 }
88756 }
88757 else if (
type == 660)
88758 {
88761 int num682 = Main.rand.Next(4, 10);
88763 {
88764 int num685 = Dust.NewDust(
base.Center, 0, 0, 180, 0
f, 0
f, 100);
88767 dust334.velocity *= 1.6f;
88768 Main.dust[
num685].velocity.Y -= 1
f;
88771 dust334.velocity += -
velocity * (Main.rand.NextFloat() * 2
f - 1
f) * 0.5
f;
88772 Main.dust[
num685].scale = 2
f;
88773 Main.dust[
num685].fadeIn = 0.5f;
88774 Main.dust[
num685].noGravity =
true;
88775 }
88776 }
88777 else if (
type == 761 ||
type == 762)
88778 {
88781 {
88784 {
88786 }
88788 Main.item[
num687].noGrabDelay = 0;
88789 if (Main.netMode == 1 &&
num687 >= 0)
88790 {
88791 NetMessage.SendData(21, -1, -1,
null,
num687, 1
f);
88792 }
88793 }
88794 }
88795 else if (
type == 712)
88796 {
88799 int num688 = Main.rand.Next(6, 12);
88801 {
88802 int num690 = Dust.NewDust(
base.Center, 0, 0, 15, 0
f, 0
f, 100);
88805 dust334.velocity *= 1.6f;
88806 Main.dust[
num690].velocity.Y -= 1
f;
88809 dust334.velocity += -
velocity * (Main.rand.NextFloat() * 2
f - 1
f) * 0.5
f;
88810 Main.dust[
num690].scale = 1
f;
88811 Main.dust[
num690].fadeIn = 1.5f;
88812 Main.dust[
num690].noGravity =
true;
88813 Main.dust[
num690].color =
new Color(255, 255, 255, 0) * 0.3f;
88816 dust334.velocity *= 0.7f;
88819 dust334.position += Main.dust[
num690].velocity * 5
f;
88820 }
88822 {
88823 Gore
gore59 = Gore.NewGoreDirect(
position, Vector2.Zero, 1008, 1
f + Main.rand.NextFloatDirection() * 0.2f);
88826 gore64.velocity *= 4
f;
88827 }
88828 }
88829 else if (
type == 638)
88830 {
88833 int num692 = Main.rand.Next(2, 5);
88835 {
88836 int num694 = Dust.NewDust(
base.Center, 0, 0, 229, 0
f, 0
f, 100);
88839 dust334.velocity *= 1.6f;
88840 Main.dust[
num694].velocity.Y -= 1
f;
88843 dust334.position -= Vector2.One * 4
f;
88844 Main.dust[
num694].position = Vector2.Lerp(Main.dust[
num694].position,
base.Center, 0.5f);
88845 Main.dust[
num694].noGravity =
true;
88846 }
88847 }
88848 else if (
type == 15 ||
type == 321)
88849 {
88852 {
88854 Main.dust[
num698].noGravity =
true;
88857 dust334.velocity *= 2
f;
88861 dust334.velocity *= 2
f;
88862 }
88863 }
88864 else if (
type == 253)
88865 {
88868 {
88870 Main.dust[
num700].noGravity =
true;
88873 dust334.velocity *= 2
f;
88877 dust334.velocity *= 2
f;
88878 }
88879 }
88880 else if (
type == 95 ||
type == 96)
88881 {
88884 {
88886 Main.dust[
num702].noGravity =
true;
88889 dust334.velocity *= 2
f;
88893 dust334.velocity *= 2
f;
88894 }
88895 }
88896 else if (
type == 17)
88897 {
88900 {
88902 }
88903 }
88904 else if (
type == 31 ||
type == 42)
88905 {
88908 {
88912 dust334.velocity *= 0.6f;
88913 }
88914 }
88915 else if (
type >= 411 &&
type <= 414)
88916 {
88919 {
88921 }
88923 {
88925 }
88927 {
88929 Main.dust[
num709].noGravity =
true;
88932 dust334.velocity -=
velocity * 0.5f;
88933 }
88934 }
88935 else if (
type == 109)
88936 {
88939 {
88943 dust334.velocity *= 0.6f;
88944 }
88945 }
88946 else if (
type == 39)
88947 {
88950 {
88954 dust334.velocity *= 0.6f;
88955 }
88956 }
88957 else if (
type == 71)
88958 {
88961 {
88965 dust334.velocity *= 0.6f;
88966 }
88967 }
88968 else if (
type == 179)
88969 {
88972 {
88976 dust334.velocity *= 0.6f;
88977 }
88978 }
88979 else if (
type == 40)
88980 {
88983 {
88987 dust334.velocity *= 0.6f;
88988 }
88989 }
88991 {
88994 {
88996 }
88997 }
88998 else if (
type == 583)
88999 {
89002 {
89003 Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 4, 0
f, 0
f, 100,
new Color(20, 250, 20, 240), 0.8
f);
89004 }
89005 }
89006 else if (
type == 584)
89007 {
89010 {
89011 Dust.NewDust(
new Vector2(
position.X,
position.Y),
width,
height, 4, 0
f, 0
f, 100,
new Color(250, 20, 120, 240), 0.8
f);
89012 }
89013 }
89014 else if (
type == 24)
89015 {
89017 {
89019 }
89020 }
89021 else if (
type == 27)
89022 {
89025 {
89027 Main.dust[
num726].noGravity =
true;
89029 }
89030 }
89031 else if (
type == 38)
89032 {
89034 {
89036 }
89037 }
89038 else if (
type == 44 ||
type == 45)
89039 {
89042 {
89044 Main.dust[
num730].noGravity =
true;
89046 }
89047 }
89048 else if (
type == 41)
89049 {
89052 {
89054 }
89056 {
89058 Main.dust[
num734].noGravity =
true;
89061 dust334.velocity *= 3
f;
89065 dust334.velocity *= 2
f;
89066 }
89072 gore64.velocity *= 0.4f;
89073 Main.gore[
num735].velocity.X += (float)Main.rand.Next(-10, 11) * 0.1f;
89074 Main.gore[
num735].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.1f;
89080 gore64.velocity *= 0.4f;
89081 Main.gore[
num735].velocity.X += (float)Main.rand.Next(-10, 11) * 0.1f;
89082 Main.gore[
num735].velocity.Y += (float)Main.rand.Next(-10, 11) * 0.1f;
89083 if (
owner == Main.myPlayer)
89084 {
89086 position.X +=
width / 2;
89087 position.Y +=
height / 2;
89090 position.X -=
width / 2;
89091 position.Y -=
height / 2;
89093 }
89094 }
89095 else if (
type == 514)
89096 {
89099 {
89103 dust334.velocity *= 1.4f;
89104 }
89106 {
89108 Main.dust[
num739].noGravity =
true;
89111 dust334.velocity *= 4.6f;
89115 dust334.velocity *= 3.3f;
89116 if (Main.rand.Next(2) == 0)
89117 {
89121 dust334.velocity *= 2.7f;
89122 }
89123 }
89124 if (
owner == Main.myPlayer)
89125 {
89127 position.X +=
width / 2;
89128 position.Y +=
height / 2;
89131 position.X -=
width / 2;
89132 position.Y -=
height / 2;
89135 }
89136 }
89137 else if (
type == 306)
89138 {
89141 {
89145 dust334.scale *= 1.1f;
89146 Main.dust[
num742].noGravity =
true;
89147 }
89149 {
89153 dust334.velocity *= 2.5f;
89156 dust334.scale *= 0.8f;
89157 Main.dust[
num744].noGravity =
true;
89158 }
89159 if (
owner == Main.myPlayer)
89160 {
89161 int num745 = Main.rand.Next(2, 5);
89162 if (Main.rand.Next(1, 101) == 100)
89163 {
89165 }
89167 {
89168 float num747 = (float)Main.rand.Next(-35, 36) * 0.02f;
89169 float num748 = (float)Main.rand.Next(-35, 36) * 0.02f;
89173 }
89174 }
89175 }
89176 else if (
type == 469)
89177 {
89178 if (
owner == Main.myPlayer)
89179 {
89182 {
89183 if (
num750 % 2 != 1 || Main.rand.Next(3) == 0)
89184 {
89189 float num752 = (float)Main.rand.Next(-35, 36) * 0.01f;
89190 float num753 = (float)Main.rand.Next(-35, 36) * 0.01f;
89192 num752 += oldVelocity.X / 6
f;
89193 num753 += oldVelocity.Y / 6
f;
89195 Main.projectile[
num754].magic =
false;
89196 Main.projectile[
num754].ranged =
true;
89197 Main.projectile[
num754].penetrate = 2;
89198 }
89199 }
89200 }
89201 }
89202 else if (
type == 183)
89203 {
89206 {
89210 dust334.velocity *= 1
f;
89211 }
89215 Main.gore[
num757].velocity.X += 1
f;
89216 Main.gore[
num757].velocity.Y += 1
f;
89219 gore64.velocity *= 0.3f;
89223 Main.gore[
num757].velocity.X -= 1
f;
89224 Main.gore[
num757].velocity.Y += 1
f;
89227 gore64.velocity *= 0.3f;
89231 Main.gore[
num757].velocity.X += 1
f;
89232 Main.gore[
num757].velocity.Y -= 1
f;
89235 gore64.velocity *= 0.3f;
89239 Main.gore[
num757].velocity.X -= 1
f;
89240 Main.gore[
num757].velocity.Y -= 1
f;
89243 gore64.velocity *= 0.3f;
89244 if (
owner == Main.myPlayer)
89245 {
89246 int num758 = Main.rand.Next(15, 25);
89248 {
89249 float speedX = (float)Main.rand.Next(-35, 36) * 0.02f;
89250 float speedY = (float)Main.rand.Next(-35, 36) * 0.02f;
89252 }
89253 }
89254 }
89256 {
89257 if (
owner != Main.myPlayer)
89258 {
89260 }
89263 {
89265 {
89268 {
89270 }
89272 {
89274 }
89276 {
89278 }
89282 float y2 = Main.dust[
num764].velocity.Y;
89284 {
89286 }
89293 dust334.velocity *= 0.5f;
89295 Main.dust[
num764].velocity.Y +=
y2;
89296 Main.dust[
num764].scale = 1.3f;
89297 Main.dust[
num764].noGravity =
true;
89298 }
89299 }
89301 {
89303 {
89306 {
89308 }
89310 {
89312 }
89316 float y3 = Main.dust[
num770].velocity.Y;
89318 {
89320 }
89324 {
89327 }
89328 else
89329 {
89332 }
89335 dust334.velocity *= 0.5f;
89337 Main.dust[
num770].velocity.Y +=
y3;
89339 {
89340 Main.dust[
num770].scale = 1.3f;
89341 Main.dust[
num770].noGravity =
true;
89342 }
89343 }
89344 }
89346 {
89347 Vector2
vector59 = ((float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f)).ToRotationVector2();
89348 float num774 = Main.rand.Next(5, 9);
89349 float num775 = Main.rand.Next(12, 17);
89350 float value13 = Main.rand.Next(3, 7);
89353 {
89355 {
89361 {
89367 dust334.velocity *= 0.1f;
89368 Main.dust[
num781].noGravity =
true;
89372 }
89373 }
89378 }
89380 {
89382 {
89388 {
89394 dust334.velocity *= 0.1f;
89395 Main.dust[
num787].noGravity =
true;
89399 }
89400 }
89405 }
89407 {
89412 float y4 = Main.dust[
num791].velocity.Y;
89414 {
89416 }
89423 dust334.velocity *= 0.5f;
89425 Main.dust[
num791].velocity.Y +=
y4;
89426 Main.dust[
num791].scale = 1.3f;
89427 Main.dust[
num791].noGravity =
true;
89428 }
89429 }
89431 {
89433 {
89437 {
89439 }
89441 {
89443 }
89445 {
89447 }
89449 {
89451 }
89453 {
89455 }
89457 {
89459 }
89462 float y5 = Main.dust[
num798].velocity.Y;
89464 {
89466 }
89470 {
89473 }
89475 {
89478 }
89480 {
89483 }
89484 else
89485 {
89488 }
89491 dust334.velocity *= 0.5f;
89493 Main.dust[
num798].velocity.Y +=
y5;
89494 if (Main.rand.Next(3) != 0)
89495 {
89496 Main.dust[
num798].scale = 1.3f;
89497 Main.dust[
num798].noGravity =
true;
89498 }
89499 }
89500 }
89502 {
89503 Vector2
vector62 = (
vector62 = ((float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f)).ToRotationVector2());
89504 float num801 = Main.rand.Next(5, 9);
89505 float num802 = (float)Main.rand.Next(10, 15) * 0.66f;
89506 float num803 = (float)Main.rand.Next(4, 7) / 2
f;
89509 {
89511 {
89516 }
89522 dust334.velocity *= 0.1f;
89526 Main.dust[
num810].scale = 1.3f;
89527 Main.dust[
num810].noGravity =
true;
89528 }
89530 {
89533 {
89535 }
89539 float y6 = Main.dust[
num814].velocity.Y;
89541 {
89543 }
89550 dust334.velocity *= 0.5f;
89552 Main.dust[
num814].velocity.Y +=
y6;
89553 Main.dust[
num814].scale = 1.3f;
89554 Main.dust[
num814].noGravity =
true;
89555 }
89556 }
89558 {
89559 Vector2
vector63 = ((float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f)).ToRotationVector2();
89561 float num817 = Main.rand.Next(3, 6) * 2;
89563 float num820 = ((Main.rand.Next(2) == 0) ? 1
f : (-1
f));
89566 {
89568 {
89575 }
89576 else
89577 {
89583 }
89589 dust334.velocity *= 0.1f;
89594 {
89595 Main.dust[
num825].scale = 0.9f;
89596 }
89597 Main.dust[
num825].noGravity =
true;
89598 }
89599 }
89601 {
89602 float num826 = (float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f);
89603 float num827 = (float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f);
89604 float num828 = 4
f + (float)Main.rand.NextDouble() * 3
f;
89605 float num830 = 4
f + (float)Main.rand.NextDouble() * 3
f;
89608 {
89610 }
89612 {
89616 {
89618 }
89620 {
89622 }
89624 {
89626 }
89628 {
89630 }
89636 {
89637 vector65.X *= 0.5f;
89642 }
89644 {
89645 vector65.Y *= 0.5f;
89650 }
89653 dust334.velocity *= 0.2f;
89658 {
89659 Main.dust[
num835].scale = 1.3f;
89660 Main.dust[
num835].noGravity =
true;
89661 }
89662 }
89663 }
89665 {
89666 Vector2
vector66 = ((float)Main.rand.NextDouble() * ((float)
Math.PI * 2
f)).ToRotationVector2();
89667 float num836 = Main.rand.Next(5, 12);
89668 float num837 = (float)Main.rand.Next(9, 14) * 0.66f;
89669 float num838 = (float)Main.rand.Next(2, 4) * 0.66f;
89672 {
89674 {
89680 {
89686 dust334.velocity *= 0.1f;
89687 Main.dust[
num845].noGravity =
true;
89691 }
89692 }
89697 }
89699 {
89703 {
89705 }
89706 else
89707 {
89709 }
89712 float y7 = Main.dust[
num849].velocity.Y;
89714 {
89716 }
89723 dust334.velocity *= 0.2f;
89725 Main.dust[
num849].velocity.Y +=
y7;
89726 Main.dust[
num849].scale = 1.3f;
89727 Main.dust[
num849].noGravity =
true;
89728 }
89729 }
89730 position.X +=
width / 2;
89731 position.Y +=
height / 2;
89734 position.X -=
width / 2;
89735 position.Y -=
height / 2;
89738 }
89739 else if (
type == 312)
89740 {
89742 position.X +=
width / 2;
89743 position.Y +=
height / 2;
89746 position.X -=
width / 2;
89747 position.Y -=
height / 2;
89749 {
89753 dust334.velocity *= 1.4f;
89754 }
89756 {
89758 Main.dust[
num856].noGravity =
true;
89761 dust334.velocity *= 7
f;
89765 dust334.velocity *= 3
f;
89766 }
89768 {
89771 {
89773 }
89779 gore64.velocity *=
num858;
89780 Main.gore[
num859].velocity.X += 1
f;
89781 Main.gore[
num859].velocity.Y += 1
f;
89787 gore64.velocity *=
num858;
89788 Main.gore[
num859].velocity.X -= 1
f;
89789 Main.gore[
num859].velocity.Y += 1
f;
89795 gore64.velocity *=
num858;
89796 Main.gore[
num859].velocity.X += 1
f;
89797 Main.gore[
num859].velocity.Y -= 1
f;
89803 gore64.velocity *=
num858;
89804 Main.gore[
num859].velocity.X -= 1
f;
89805 Main.gore[
num859].velocity.Y -= 1
f;
89806 }
89807 position.X +=
width / 2;
89808 position.Y +=
height / 2;
89811 position.X -=
width / 2;
89812 position.Y -=
height / 2;
89814 }
89815 else if (
type == 910 ||
type == 911)
89816 {
89822 {
89826 dust334.velocity *= 1.4f;
89827 }
89829 {
89831 dust309.noGravity = true;
89832 dust309.velocity.Y -= 1.2f;
89835 dust334.velocity *= 4
f;
89837 dust309.velocity.Y -= 1.2f;
89840 dust334.velocity *= 2
f;
89841 }
89843 {
89845 {
89847 {
89848 Gore
gore60 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
89851 gore64.velocity *= ((
num864 == 1) ? 0.4
f : 0.8
f);
89854 gore64.velocity +=
new Vector2((
float)
num865, (
float)
num866);
89855 }
89856 }
89857 }
89858 if (Main.netMode != 1)
89859 {
89860 Point
pt =
base.Center.ToTileCoordinates();
89862 }
89863 }
89865 {
89868 {
89870 }
89871 else
89872 {
89874 }
89876 int num867 = Dust.dustWater();
89878 {
89882 dust334.velocity *= 1.4f;
89883 }
89885 {
89887 dust311.noGravity = true;
89888 dust311.velocity.Y -= 1.2f;
89891 dust334.velocity *= 7
f;
89893 dust311.velocity.Y -= 1.2f;
89896 dust334.velocity *= 4
f;
89897 }
89899 {
89901 {
89903 {
89904 Gore
gore61 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
89907 gore64.velocity *= ((
num870 == 1) ? 0.4
f : 0.8
f);
89910 gore64.velocity +=
new Vector2((
float)
num871, (
float)
num872);
89911 }
89912 }
89913 }
89914 if (Main.netMode != 1)
89915 {
89916 Point
pt2 =
base.Center.ToTileCoordinates();
89918 }
89919 }
89921 {
89924 {
89926 }
89927 else
89928 {
89930 }
89934 {
89938 dust334.velocity *= 1.4f;
89939 }
89941 {
89945 dust334.velocity *= 7
f;
89949 dust334.velocity *= 4
f;
89950 }
89952 {
89954 {
89956 {
89957 Gore
gore62 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
89960 gore64.velocity *= ((
num877 == 1) ? 0.4
f : 0.8
f);
89963 gore64.velocity +=
new Vector2((
float)
num878, (
float)
num879);
89964 }
89965 }
89966 }
89967 if (Main.netMode != 1)
89968 {
89969 Point
pt3 =
base.Center.ToTileCoordinates();
89971 }
89972 }
89974 {
89977 {
89979 }
89980 else
89981 {
89983 }
89987 {
89991 dust334.velocity *= 1.4f;
89992 }
89994 {
89998 dust334.velocity *= 7
f;
90002 dust334.velocity *= 4
f;
90003 }
90005 {
90007 {
90009 {
90010 Gore
gore63 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
90013 gore64.velocity *= ((
num883 == 1) ? 0.4
f : 0.8
f);
90016 gore64.velocity +=
new Vector2((
float)
num885, (
float)
num886);
90017 }
90018 }
90019 }
90020 if (Main.netMode != 1)
90021 {
90022 Point
pt4 =
base.Center.ToTileCoordinates();
90024 }
90025 }
90027 {
90030 {
90032 }
90033 else
90034 {
90036 }
90040 {
90044 dust334.velocity *= 1.4f;
90045 }
90047 {
90051 dust334.velocity *= 7
f;
90055 dust334.velocity *= 4
f;
90056 }
90058 {
90060 {
90062 {
90063 Gore
gore2 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
90066 gore64.velocity *= ((
num890 == 1) ? 0.4
f : 0.8
f);
90069 gore64.velocity +=
new Vector2((
float)
num891, (
float)
num892);
90070 }
90071 }
90072 }
90073 if (Main.netMode != 1)
90074 {
90075 Point
pt5 =
base.Center.ToTileCoordinates();
90077 }
90078 }
90080 {
90082 {
90084 }
90085 else
90086 {
90088 }
90092 {
90094 dust319.velocity = (dust319.position -
base.Center).SafeNormalize(Vector2.Zero);
90097 dust334.velocity *= 2
f + (float)Main.rand.Next(5) * 0.1f;
90098 dust319.velocity.Y -=
num893 * 0.5f;
90099 dust319.color = Color.Black * 0.9f;
90100 if (Main.rand.Next(2) == 0)
90101 {
90102 dust319.scale = 0.5f;
90103 dust319.fadeIn = 1
f + (float)Main.rand.Next(10) * 0.1f;
90104 dust319.color = Color.Black * 0.8f;
90105 }
90106 }
90108 {
90110 dust320.noGravity = true;
90111 dust320.fadeIn = 1.4f;
90112 dust320.velocity = (dust320.position -
base.Center).SafeNormalize(Vector2.Zero);
90115 dust334.velocity *= 5.5f + (float)Main.rand.Next(61) * 0.1f;
90116 dust320.velocity.Y -=
num893 * 0.5f;
90118 dust320.velocity = (dust320.position -
base.Center).SafeNormalize(Vector2.Zero);
90119 dust320.velocity.Y -=
num893 * 0.25f;
90122 dust334.velocity *= 1.5f + (float)Main.rand.Next(5) * 0.1f;
90123 dust320.fadeIn = 0
f;
90124 dust320.scale = 0.6f;
90126 dust320.noGravity =
num896 % 2 == 0;
90127 dust320.velocity = (dust320.position -
base.Center).SafeNormalize(Vector2.Zero);
90130 dust334.velocity *= 3
f + (float)Main.rand.Next(21) * 0.2f;
90131 dust320.velocity.Y -=
num893 * 0.5f;
90132 dust320.fadeIn = 1.2f;
90134 {
90135 dust320.scale = 0.4f;
90136 dust320.fadeIn = 0
f;
90137 continue;
90138 }
90141 dust334.velocity *= 2
f + (float)Main.rand.Next(5) * 0.2f;
90142 dust320.velocity.Y -=
num893 * 0.5f;
90143 }
90146 {
90147 float num899 = (float)
Math.PI * 2
f * Main.rand.NextFloat();
90149 {
90157 Vector2
vector69 = ((float)
num897 - (
float)Math.PI / 2
f).ToRotationVector2();
90160 dust321.fadeIn = 1.8f;
90161 dust321.noGravity = true;
90164 dust334.velocity *= (float)
num898 * (Main.rand.NextFloat() * 2
f + 0.2f);
90170 dust334.velocity *= 2
f;
90171 }
90172 }
90174 {
90176 {
90178 {
90179 Gore
gore3 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
90182 gore64.velocity *= (float)
num901 / 3
f;
90185 gore64.velocity +=
new Vector2((
float)
num902, (
float)
num903);
90186 }
90187 }
90188 }
90190 }
90192 {
90197 {
90199 dust322.fadeIn = 0
f;
90202 dust334.velocity *= 0.5f;
90203 }
90205 {
90207 dust323.noGravity = true;
90210 dust334.velocity *= 2.5f;
90214 dust334.velocity *= 2
f;
90215 dust323.noGravity = true;
90216 }
90218 {
90222 dust334.velocity *= 2
f;
90223 dust324.noGravity = true;
90224 }
90226 {
90228 {
90229 if (Main.rand.Next(5) == 0)
90230 {
90231 Gore
gore4 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
90234 gore64.velocity *= 0.2f;
90237 gore64.scale *= 0.65f;
90240 gore64.velocity +=
new Vector2((
float)
num908, (
float)
num909) * 0.5f;
90241 }
90242 }
90243 }
90244 }
90246 {
90249 {
90251 }
90252 else
90253 {
90255 }
90258 {
90262 dust334.velocity *= 1.4f;
90263 }
90265 {
90267 dust326.noGravity = true;
90270 dust334.velocity *= 7
f;
90274 dust334.velocity *= 4
f;
90275 dust326.noGravity = true;
90276 }
90278 {
90282 dust334.velocity *= 4
f;
90283 dust327.noGravity = true;
90284 }
90286 {
90288 {
90290 {
90291 Gore
gore5 = Gore.NewGoreDirect(
position, Vector2.Zero, Main.rand.Next(61, 64));
90294 gore64.velocity *= ((
num913 == 1) ? 0.4
f : 0.8
f);
90297 gore64.velocity +=
new Vector2((
float)
num914, (
float)
num915);
90298 }
90299 }
90300 }
90301 if (
owner == Main.myPlayer)
90302 {
90305 {
90307 }
90309 {
90311 }
90313 {
90315 }
90316 float num919 = Main.rand.NextFloat() * ((float)
Math.PI * 2
f);
90318 {
90320 Vector2
vector71 =
f5.ToRotationVector2() * (4
f + Main.rand.NextFloat() * 2
f);
90323 Projectile projectile = Main.projectile[
num921];
90326 projectile3.timeLeft -= Main.rand.Next(30);
90327 }
90328 }
90329 }
90331 {
90333 {
90335 }
90336 else
90337 {
90339 }
90340 position.X +=
width / 2;
90341 position.Y +=
height / 2;
90344 position.X -=
width / 2;
90345 position.Y -=
height / 2;
90347 {
90351 dust334.velocity *= 1.4f;
90352 }
90354 {
90356 Main.dust[
num925].noGravity =
true;
90359 dust334.velocity *= 7
f;
90363 dust334.velocity *= 3
f;
90364 }
90366 {
90369 {
90371 }
90377 gore64.velocity *=
num927;
90378 Main.gore[
num928].velocity.X += 1
f;
90379 Main.gore[
num928].velocity.Y += 1
f;
90385 gore64.velocity *=
num927;
90386 Main.gore[
num928].velocity.X -= 1
f;
90387 Main.gore[
num928].velocity.Y += 1
f;
90393 gore64.velocity *=
num927;
90394 Main.gore[
num928].velocity.X += 1
f;
90395 Main.gore[
num928].velocity.Y -= 1
f;
90401 gore64.velocity *=
num927;
90402 Main.gore[
num928].velocity.X -= 1
f;
90403 Main.gore[
num928].velocity.Y -= 1
f;
90404 }
90405 }
90407 {
90409 {
90411 }
90412 else
90413 {
90415 }
90416 position.X +=
width / 2;
90417 position.Y +=
height / 2;
90420 position.X -=
width / 2;
90421 position.Y -=
height / 2;
90423 {
90427 dust334.velocity *= 3
f;
90428 if (Main.rand.Next(2) == 0)
90429 {
90430 Main.dust[
num931].scale = 0.5f;
90431 Main.dust[
num931].fadeIn = 1
f + (float)Main.rand.Next(10) * 0.1f;
90432 }
90433 }
90435 {
90437 Main.dust[
num933].noGravity =
true;
90440 dust334.velocity *= 5
f;
90444 dust334.velocity *= 2
f;
90445 }
90447 {
90450 {
90452 }
90454 {
90456 }
90462 gore64.velocity *=
num935;
90463 Main.gore[
num936].velocity.X += 1
f;
90464 Main.gore[
num936].velocity.Y += 1
f;
90470 gore64.velocity *=
num935;
90471 Main.gore[
num936].velocity.X -= 1
f;
90472 Main.gore[
num936].velocity.Y += 1
f;
90478 gore64.velocity *=
num935;
90479 Main.gore[
num936].velocity.X += 1
f;
90480 Main.gore[
num936].velocity.Y -= 1
f;
90486 gore64.velocity *=
num935;
90487 Main.gore[
num936].velocity.X -= 1
f;
90488 Main.gore[
num936].velocity.Y -= 1
f;
90489 }
90490 position.X +=
width / 2;
90491 position.Y +=
height / 2;
90494 position.X -=
width / 2;
90495 position.Y -=
height / 2;
90496 }
90497 else if (
type == 246)
90498 {
90501 {
90505 dust334.velocity *= 0.9f;
90506 }
90508 {
90510 Main.dust[
num941].noGravity =
true;
90513 dust334.velocity *= 3
f;
90517 dust334.velocity *= 2
f;
90518 }
90524 gore64.velocity *= 0.3f;
90525 Main.gore[
num942].velocity.X += Main.rand.Next(-1, 2);
90526 Main.gore[
num942].velocity.Y += Main.rand.Next(-1, 2);
90527 position.X +=
width / 2;
90528 position.Y +=
height / 2;
90531 position.X -=
width / 2;
90532 position.Y -=
height / 2;
90536 if (
owner == Main.myPlayer)
90537 {
90538 int num943 = Main.rand.Next(2, 6);
90540 {
90541 float num945 = Main.rand.Next(-100, 101);
90543 float num946 = Main.rand.Next(-100, 101);
90550 Main.projectile[
num948].maxPenetrate = 0;
90551 }
90552 }
90553 }
90554 else if (
type == 249)
90555 {
90558 {
90562 dust334.velocity *= 0.8f;
90563 }
90565 {
90567 Main.dust[
num953].noGravity =
true;
90570 dust334.velocity *= 2.5f;
90574 dust334.velocity *= 1.5f;
90575 }
90581 gore64.velocity *= 0.2f;
90582 Main.gore[
num954].velocity.X += Main.rand.Next(-1, 2);
90583 Main.gore[
num954].velocity.Y += Main.rand.Next(-1, 2);
90584 position.X +=
width / 2;
90585 position.Y +=
height / 2;
90588 position.X -=
width / 2;
90589 position.Y -=
height / 2;
90592 }
90593 else if (
type == 588)
90594 {
90600 {
90604 dust334.velocity *= 1.4f;
90605 Main.dust[
num956].fadeIn = 1
f;
90606 Main.dust[
num956].noGravity =
true;
90607 }
90609 {
90611 Main.dust[
num958].noGravity =
true;
90614 dust334.velocity *= 5
f;
90618 dust334.velocity *= 3
f;
90619 }
90620 if (Main.rand.Next(2) == 0)
90621 {
90627 gore64.velocity *= 0.4f;
90628 Main.gore[
num962].velocity.X += 1
f;
90629 Main.gore[
num962].velocity.Y += 1
f;
90630 }
90631 if (Main.rand.Next(2) == 0)
90632 {
90638 gore64.velocity *= 0.4f;
90639 Main.gore[
num961].velocity.X -= 1
f;
90640 Main.gore[
num961].velocity.Y += 1
f;
90641 }
90642 if (Main.rand.Next(2) == 0)
90643 {
90649 gore64.velocity *= 0.4f;
90650 Main.gore[
num960].velocity.X += 1
f;
90651 Main.gore[
num960].velocity.Y -= 1
f;
90652 }
90653 if (Main.rand.Next(2) == 0)
90654 {
90660 gore64.velocity *= 0.4f;
90661 Main.gore[
num959].velocity.X -= 1
f;
90662 Main.gore[
num959].velocity.Y -= 1
f;
90663 }
90664 }
90665 else if (
type == 773)
90666 {
90669 float num963 = v.ToRotation() + (float)
Math.PI / 2
f;
90674 {
90676 }
90677 else
90678 {
90680 }
90683 {
90685 dust329.velocity.Y -= 0.5f;
90688 dust334.velocity *= 1.2f;
90689 dust329.color = Color.Black * 0.9f;
90690 if (Main.rand.Next(2) == 0)
90691 {
90692 dust329.scale = 0.5f;
90693 dust329.fadeIn = 1
f + (float)Main.rand.Next(10) * 0.1f;
90694 dust329.color = Color.Black * 0.8f;
90695 }
90696 }
90698 {
90700 dust330.noGravity = true;
90702 {
90704 }
90705 dust330.velocity.Y -= 0.5f;
90706 dust330.fadeIn = 1.2f;
90709 dust334.velocity *= 8
f;
90718 dust334.velocity *= 2
f;
90724 dust330.velocity.Y -= 1.5f;
90726 dust330.noGravity = true;
90727 dust330.velocity.Y -= 1
f;
90728 dust330.fadeIn = 2
f;
90731 dust334.velocity *= 4
f;
90737 }
90740 {
90741 float num968 = (float)
Math.PI * 2
f * Main.rand.NextFloat();
90743 {
90745 Vector2
value5 =
f6.ToRotationVector2();
90746 value5 *=
new Vector2(0.7
f, 0.3
f);
90748 dust331.fadeIn = 2
f;
90749 dust331.noGravity = true;
90752 dust334.velocity *= (float)
num967 + Main.rand.NextFloat() * 0.6f;
90753 dust331.velocity.Y -= (float)
num967 * 0.8
f;
90759 {
90763 }
90764 else
90765 {
90769 }
90770 }
90771 }
90774 {
90776 {
90778 {
90779 Gore
gore6 = Gore.NewGoreDirect(
base.Center - Vector2.One * 20
f, Vector2.Zero, Main.rand.Next(61, 64));
90780 gore6.velocity = gore6.velocity * 0.5f +
vector72 * 3
f;
90783 gore64.velocity +=
new Vector2((
float)
num971, (
float)
num972) * 0.2f;
90784 }
90785 }
90786 }
90788 if (
owner == Main.myPlayer)
90789 {
90790 Point
p =
base.Center.ToTileCoordinates();
90791 Vector2
vector73 =
p.ToWorldCoordinates();
90795 {
90797 }
90799 {
90801 Point
p2 =
vec.ToTileCoordinates();
90802 if (
ShouldWallExplode(
p2.ToWorldCoordinates(), 9999, p2.X - 1, p2.X + 1, p2.Y - 1, p2.Y + 1))
90803 {
90805 break;
90806 }
90807 }
90809 {
90811 Point
p3 =
vec2.ToTileCoordinates();
90813 }
90814 }
90815 }
90817 {
90819 position.X +=
width / 2;
90820 position.Y +=
height / 2;
90823 position.X -=
width / 2;
90824 position.Y -=
height / 2;
90827 {
90829 }
90831 {
90835 dust334.velocity *= 1.4f;
90836 }
90838 {
90840 Main.dust[
num981].noGravity =
true;
90843 dust334.velocity *= 5
f;
90847 dust334.velocity *= 3
f;
90848 }
90854 gore64.velocity *= 0.4f;
90855 Main.gore[
num982].velocity.X += 1
f;
90856 Main.gore[
num982].velocity.Y += 1
f;
90862 gore64.velocity *= 0.4f;
90863 Main.gore[
num982].velocity.X -= 1
f;
90864 Main.gore[
num982].velocity.Y += 1
f;
90870 gore64.velocity *= 0.4f;
90871 Main.gore[
num982].velocity.X += 1
f;
90872 Main.gore[
num982].velocity.Y -= 1
f;
90878 gore64.velocity *= 0.4f;
90879 Main.gore[
num982].velocity.X -= 1
f;
90880 Main.gore[
num982].velocity.Y -= 1
f;
90882 {
90884 position.X +=
width / 2;
90885 position.Y +=
height / 2;
90888 position.X -=
width / 2;
90889 position.Y -=
height / 2;
90895 }
90897 {
90903 }
90904 }
90906 {
90909 {
90910 position.X +=
width / 2;
90911 position.Y +=
height / 2;
90914 position.X -=
width / 2;
90915 position.Y -=
height / 2;
90916 }
90918 {
90922 dust334.velocity *= 1.4f;
90923 }
90925 {
90927 Main.dust[
num986].noGravity =
true;
90930 dust334.velocity *= 5
f;
90934 dust334.velocity *= 3
f;
90935 }
90937 {
90941 Main.gore[
num989].scale = 1.5f;
90942 Main.gore[
num989].velocity.X += 1.5f;
90943 Main.gore[
num989].velocity.Y += 1.5f;
90947 Main.gore[
num989].scale = 1.5f;
90948 Main.gore[
num989].velocity.X -= 1.5f;
90949 Main.gore[
num989].velocity.Y += 1.5f;
90953 Main.gore[
num989].scale = 1.5f;
90954 Main.gore[
num989].velocity.X += 1.5f;
90955 Main.gore[
num989].velocity.Y -= 1.5f;
90959 Main.gore[
num989].scale = 1.5f;
90960 Main.gore[
num989].velocity.X -= 1.5f;
90961 Main.gore[
num989].velocity.Y -= 1.5f;
90962 }
90963 position.X +=
width / 2;
90964 position.Y +=
height / 2;
90967 position.X -=
width / 2;
90968 position.Y -=
height / 2;
90969 }
90970 else if (
type == 69)
90971 {
90974 {
90976 }
90978 {
90980 Main.dust[
num992].alpha = 100;
90981 Main.dust[
num992].velocity.X *= 1.5f;
90984 dust334.velocity *= 3
f;
90985 }
90986 }
90987 else if (
type == 70)
90988 {
90991 {
90993 }
90995 {
90997 Main.dust[
num995].alpha = 100;
90998 Main.dust[
num995].velocity.X *= 1.5f;
91001 dust334.velocity *= 3
f;
91002 }
91003 }
91004 else if (
type == 621)
91005 {
91008 {
91010 }
91012 {
91014 Main.dust[
num999].alpha = 100;
91015 Main.dust[
num999].velocity.X *= 1.5f;
91018 dust334.velocity *= 3
f;
91019 }
91020 }
91021 else if (
type == 114 ||
type == 115)
91022 {
91025 {
91029 Main.dust[
num1003].noGravity =
true;
91032 dust334.velocity *= 0.5f;
91036 dust334.velocity *= 0.5f;
91037 }
91038 }
91039 else if (
type == 116)
91040 {
91043 {
91047 Main.dust[
num1007].noGravity =
true;
91049 Main.dust[
num1007].noGravity =
true;
91050 }
91051 }
91052 else if (
type == 173)
91053 {
91056 {
91059 int num1030 = Main.rand.Next(3);
91061 {
91062 0 => 15,
91063 1 => 57,
91064 _ => 58,
91068 dust334.velocity *= 1.5f;
91069 Main.dust[
num1012].noGravity =
true;
91070 }
91071 }
91072 else if (
type == 132)
91073 {
91076 {
91080 Main.dust[
num1016].noGravity =
true;
91083 dust334.velocity *= 0.5f;
91087 dust334.velocity *= 0.05f;
91088 }
91089 }
91090 else if (
type == 156)
91091 {
91094 {
91098 Main.dust[
num1021].noGravity =
true;
91101 dust334.velocity *= 0.5f;
91105 dust334.velocity *= 0.05f;
91106 Main.dust[
num1021].noGravity =
true;
91107 }
91108 }
91109 else if (
type == 157)
91110 {
91113 {
91115 Main.dust[
num1023].noGravity =
true;
91118 dust334.velocity *= 0.5f;
91119 }
91120 }
91121 else if (
type == 370)
91122 {
91125 {
91127 }
91128 Vector2
vector75 =
default(Vector2);
91130 {
91131 ((Vector2)(
ref vector75)).
_002Ector((
float)Main.rand.Next(-10, 11), (float)Main.rand.Next(-10, 11));
91133 int num1026 = Gore.NewGore(
base.Center +
vector75 * 10
f,
vector75 * (
float)Main.rand.Next(4, 9) * 0.66f + Vector2.UnitY * 1.5f, 331, (float)Main.rand.Next(40, 141) * 0.01f);
91134 Main.gore[
num1026].sticky =
false;
91135 }
91136 }
91137 else if (
type == 371)
91138 {
91142 {
91144 }
91145 Vector2
vector76 =
default(Vector2);
91147 {
91148 ((Vector2)(
ref vector76)).
_002Ector((
float)Main.rand.Next(-10, 11), (float)Main.rand.Next(-10, 11));
91151 int num1029 = Gore.NewGore(
base.Center +
vector76 * 10
f,
vector76 * (
float)Main.rand.Next(4, 9) * 0.66f + Vector2.UnitY * 1.5f, Main.rand.Next(435, 438), (float)Main.rand.Next(20, 100) * 0.01f);
91152 Main.gore[
num1029].sticky =
false;
91153 }
91154 }
91155 else if (
type == 936)
91156 {
91159 {
91160 Color
newColor8 = Main.hslToRgb(0.7
f + 0.2
f * Main.rand.NextFloat(), 1
f, 0.7f);
91166 dust334.velocity *= 1.5f;
91167 newColor8 = Main.hslToRgb(0.7
f + 0.2
f * Main.rand.NextFloat(), 1
f, 0.5f);
91173 dust334.velocity *= 3
f;
91174 Main.dust[
num5].noGravity =
true;
91175 }
91176 }
91177 }
91178 }
91180 {
91184 {
91186 }
91188 {
91190 }
91192 {
91195 {
91197 }
91198 }
91200 {
91202 if (
nPC.active &&
nPC.life > 0 && Vector2.Distance(
base.Center,
nPC.Center) <
num6)
91203 {
91205 }
91206 }
91207 }
91208 if (
owner == Main.myPlayer)
91209 {
91211 {
91219 {
91221 }
91222 if (
num12 > Main.maxTilesX)
91223 {
91224 num12 = Main.maxTilesX;
91225 }
91227 {
91229 }
91230 if (
num15 > Main.maxTilesY)
91231 {
91232 num15 = Main.maxTilesY;
91233 }
91235 }
91237 {
91240 {
91242 }
91244 {
91246 }
91248 {
91250 }
91252 {
91254 }
91256 {
91258 }
91260 {
91262 }
91264 {
91266 }
91268 {
91270 }
91273 {
91275 }
91283 {
91285 }
91286 if (
num20 > Main.maxTilesX)
91287 {
91288 num20 = Main.maxTilesX;
91289 }
91291 {
91293 }
91294 if (
num22 > Main.maxTilesY)
91295 {
91296 num22 = Main.maxTilesY;
91297 }
91300 }
91301 if (Main.netMode != 0)
91302 {
91304 }
91306 {
91309 {
91312 {
91314 }
91318 {
91320 if (Main.netMode != 0)
91321 {
91322 NetMessage.SendData(17, -1, -1,
null, 20,
num26,
num27);
91323 }
91324 }
91325 }
91327 {
91333 {
91336 }
91338 {
91342 {
91344 }
91345 }
91347 {
91350 }
91352 {
91355 }
91357 {
91360 }
91362 {
91365 }
91367 {
91370 }
91372 {
91375 }
91377 {
91380 }
91382 {
91385 }
91387 {
91390 }
91392 {
91395 }
91397 {
91400 }
91402 {
91405 }
91407 {
91410 }
91412 {
91415 }
91417 {
91420 }
91422 {
91425 }
91427 {
91430 if ((
double)((Vector2)(
ref center4)).Length() > (double)Main.LogicCheckScreenWidth * 0.75)
91431 {
91434 }
91435 }
91437 {
91439 }
91441 {
91442 bool flag5 =
false;
91443 bool flag6 =
false;
91444 if (
num29 < Main.maxTilesY - 2)
91445 {
91448 {
91449 if (
tile2.active() && tile2.type == 314)
91450 {
91452 }
91454 {
91456 }
91457 }
91458 }
91460 {
91462 }
91464 {
91466 {
91468 if (Main.netMode != 0)
91469 {
91470 NetMessage.SendData(17, -1, -1,
null, 14,
num28,
num29 + 1);
91471 }
91472 }
91473 if (Main.netMode != 0)
91474 {
91476 }
91477 }
91479 {
91481 }
91482 }
91483 else if (
num31 > 0)
91484 {
91486 }
91487 }
91489 {
91491 {
91493 Main.item[
num23].noGrabDelay = 0;
91494 }
91495 else if (
ai[1] < 10
f)
91496 {
91498 Main.item[
num23].noGrabDelay = 0;
91499 }
91500 }
91502 {
91504 {
91506 Main.item[
num23].noGrabDelay = 0;
91507 }
91508 else if (
ai[1] < 10
f)
91509 {
91511 Main.item[
num23].noGrabDelay = 0;
91512 }
91513 }
91515 {
91517 {
91519 Main.item[
num23].noGrabDelay = 0;
91520 }
91521 else if (
ai[1] < 10
f)
91522 {
91524 Main.item[
num23].noGrabDelay = 0;
91525 }
91526 }
91528 {
91530 {
91532 Main.item[
num23].noGrabDelay = 0;
91533 }
91534 else if (
ai[1] < 10
f)
91535 {
91537 Main.item[
num23].noGrabDelay = 0;
91538 }
91539 }
91540 if (
type == 12 &&
damage > 500 && !Main.remixWorld)
91541 {
91543 }
91545 {
91547 }
91549 {
91551 }
91552 if (Main.netMode == 1 &&
num23 >= 0)
91553 {
91554 NetMessage.SendData(21, -1, -1,
null,
num23, 1
f);
91555 }
91556 }
91558 {
91562 {
91564 }
91566 {
91568 }
91570 {
91572 }
91573 }
91575 {
91576 int num33 = Main.rand.Next(2, 4);
91577 if (Main.rand.Next(5) == 0)
91578 {
91580 }
91582 {
91585 x2 *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
91586 y8 *= 1
f + (float)Main.rand.Next(-20, 21) * 0.01f;
91588 }
91589 }
91590 }
91593 }
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 ...
Used when an NPC or Projectile is killed and drops loot. Vanilla projectile examples are geodes and...
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.
Vector2 DirectionTo(Vector2 Destination)
bool active
If true, the Entity actually exists within the game world. Within the specific entity array,...
int height
The height of this Entity's hitbox, in pixels.
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
static Color GetPortalColor(int colorIndex)
static MultiToolMode ToolMode
static ArmorShaderDataSet Armor
static bool[] DontCancelChannelOnKill
If true for a given projectile type (F:Terraria.Projectile.type), then that projectile will not call ...
static readonly SoundStyle Item118
static readonly SoundStyle Item100
static readonly SoundStyle Item96
static readonly SoundStyle Item89
static readonly SoundStyle Item94
static readonly SoundStyle Item50
static readonly SoundStyle Item14
static readonly SoundStyle Item127
static readonly SoundStyle Item45
static readonly SoundStyle Item54
static readonly SoundStyle DD2_SkyDragonsFuryCircle
static readonly SoundStyle Item107
static readonly SoundStyle Item27
static readonly SoundStyle Item16
static readonly SoundStyle Item10
static readonly SoundStyle Item51
static readonly SoundStyle DD2_GoblinBomb
static readonly SoundStyle DD2_BetsyFireballImpact
static readonly SoundStyle Item110
static readonly SoundStyle Item62
static readonly SoundStyle Item21
static readonly SoundStyle DD2_BetsysWrathImpact
static readonly SoundStyle Item4
static bool[] CrackedBricks
static bool PreKill(Projectile projectile, int timeLeft)
static void OnKill(Projectile projectile, int timeLeft)
This serves as the central class from which projectile-related functions are carried out....
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 aiStyle
Selects which vanilla code to use for the AI method. Vanilla projectile AI styles are enumerated in t...
int damage
This will always be set in Projectile.NewProjectile based on the weapons damage and player stat modif...
Color GetFairyQueenWeaponsColor(float alphaChannelMultiplier=1f, float lerpToWhite=0f, float? rawHueOverride=null)
void DoRainbowCrystalStaffExplosion()
Point GetScarabBombDigDirectionSnap8()
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
int identity
The projectile's universal unique identifier, which is the same on all clients and 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....
IEntitySource GetItemSource_DropAsItem()
void ExplodeCrackedTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
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...
void TryGettingHitByOtherPlayersExplosives()
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...
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...
bool ShouldWallExplode(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ)
Determines if walls should be exploded by checking if there is an empty wall within the specified rad...
bool hostile
If True, this projectile will hurt players and friendly NPCs (F:Terraria.NPC.friendly) Defaults to ...
void Kill_DirtAndFluidProjectiles_RunDelegateMethodPushUpForHalfBricks(Point pt, float size, Utils.TileActionAttempt plot)
void ExplodeTiles(Vector2 compareSpot, int radius, int minI, int maxI, int minJ, int maxJ, bool wallSplode)
Explodes tiles within a radius of the given position and within the bounds passed in....
bool usesLocalNPCImmunity
If true, this projectile manages it's own immunity timers for each npc. Use this rather than F:Terra...
IEntitySource GetNPCSource_FromThis()
void Resize(int newWidth, int newHeight)
Changes the F:Terraria.Entity.width and F:Terraria.Entity.height of the projectile while preserving t...
bool noDropItem
Set to true if you don't want this projectile to have a chance to recover the ammo item that shot thi...
int localNPCHitCooldown
When used in conjunction with F:Terraria.Projectile.usesLocalNPCImmunity, determines how many ticks m...
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....
void AI_061_FishingBobber_GiveItemToPlayer(Player thePlayer, int itemType)
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...