6494 {
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 if (Main.netMode == 2)
6542 {
6543 return;
6544 }
6546 {
6547 for (int i = 0; i < 100; i++)
6548 {
6550 Dust dust = Dust.NewDustDirect(
new Vector2(
mountedPlayer.position.X - 20
f,
mountedPlayer.position.Y),
mountedPlayer.width + 40,
mountedPlayer.height, 267, 0
f, 0
f, 60,
new Color(130, 60, 255, 70));
6551 dust.scale += (float)Main.rand.Next(-10, 21) * 0.01f;
6552 dust.noGravity = true;
6553 dust.velocity += mountedPlayer.velocity * 0.8f;
6554 dust.velocity *= Main.rand.NextFloat();
6555 dust.velocity.Y += 2
f * Main.rand.NextFloatDirection();
6556 dust.noLight = true;
6557 if (Main.rand.Next(3) == 0)
6558 {
6559 Dust
dust2 = Dust.CloneDust(dust);
6560 dust2.color = Color.White;
6561 dust2.scale *= 0.5f;
6562 dust2.alpha = 0;
6563 }
6564 }
6565 return;
6566 }
6567 Color
newColor = Color.Transparent;
6569 {
6571 }
6572 for (
int j = 0;
j < 100;
j++)
6573 {
6575 {
6577 {
6578 int type = Main.rand.Next(61, 64);
6580 Main.gore[
num].alpha = 100;
6581 Main.gore[
num].velocity = Vector2.Transform(
new Vector2(1
f, 0
f), Matrix.CreateRotationZ((
float)(Main.rand.NextDouble() * 6.2831854820251465)));
6582 }
6583 continue;
6584 }
6587 int alpha = 0;
6589 {
6590 type2 = ((Main.rand.Next(2) != 0) ? 16 : 31);
6591 scale = 0.9f;
6592 alpha = 50;
6594 {
6596 }
6598 {
6600 }
6601 }
6603 Main.dust[
num2].scale += (float)Main.rand.Next(-10, 21) * 0.01f;
6605 {
6606 Main.dust[
num2].noGravity =
true;
6607 }
6608 else if (Main.rand.Next(2) == 0)
6609 {
6610 Main.dust[
num2].scale *= 1.3f;
6611 Main.dust[
num2].noGravity =
true;
6612 }
6613 else
6614 {
6616 obj.velocity *= 0.5f;
6617 }
6619 obj2.velocity += mountedPlayer.velocity * 0.8f;
6621 {
6623 obj3.velocity *= Main.rand.NextFloat();
6624 }
6625 }
6627 {
6628 for (
int k = 0;
k < 5;
k++)
6629 {
6630 int type3 = Main.rand.Next(61, 64);
6631 if (
_type == 41 || (
_type == 40 && Main.rand.Next(2) == 0))
6632 {
6633 type3 = Main.rand.Next(11, 14);
6634 }
6636 Main.gore[
num3].alpha = 100;
6637 Main.gore[
num3].velocity = Vector2.Transform(
new Vector2(1
f, 0
f), Matrix.CreateRotationZ((
float)(Main.rand.NextDouble() * 6.2831854820251465))) * 1.4
f;
6638 }
6639 }
6641 {
6642 for (
int l = 0;
l < 4;
l++)
6643 {
6644 int type4 = Main.rand.Next(61, 64);
6646 Main.gore[
num4].alpha = 100;
6647 Main.gore[
num4].velocity = Vector2.Transform(
new Vector2(1
f, 0
f), Matrix.CreateRotationZ((
float)(Main.rand.NextDouble() * 6.2831854820251465)));
6648 }
6649 }
6650 }
static bool[] Cart
If true for a given T:Terraria.ID.MountID, then that mount is categorized as a minecart....