TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ DoExhaustMinecartEffect()

void Terraria.Mount.DoExhaustMinecartEffect ( Player mountedPlayer,
int dustType )
inlineprivate

Definition at line 4507 of file Mount.cs.

4508 {
4509 //IL_0041: Unknown result type (might be due to invalid IL or missing references)
4510 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
4511 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
4512 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
4513 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
4514 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
4515 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
4516 //IL_0075: Unknown result type (might be due to invalid IL or missing references)
4517 //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
4518 //IL_00b2: Unknown result type (might be due to invalid IL or missing references)
4519 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
4520 //IL_00b8: Unknown result type (might be due to invalid IL or missing references)
4521 //IL_00b9: Unknown result type (might be due to invalid IL or missing references)
4522 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
4523 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
4524 //IL_00c5: Unknown result type (might be due to invalid IL or missing references)
4525 //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
4526 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
4527 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
4528 //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
4529 //IL_0113: Unknown result type (might be due to invalid IL or missing references)
4530 //IL_011d: Unknown result type (might be due to invalid IL or missing references)
4531 //IL_0122: Unknown result type (might be due to invalid IL or missing references)
4532 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
4533 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
4534 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
4535 //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
4536 //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
4537 float num = ((Vector2)(ref mountedPlayer.velocity)).Length();
4538 if (num < 1f && Main.rand.Next(4) != 0)
4539 {
4540 return;
4541 }
4542 int num2 = 1 + (int)num / 6;
4543 while (num2 > 0)
4544 {
4545 num2--;
4546 Vector2 vector = Main.rand.NextVector2Square(-1f, 1f) * new Vector2(3f, 3f);
4547 Vector2 vector2 = new Vector2(-18f, 20f) * mountedPlayer.Directions;
4548 if (num > 6f)
4549 {
4550 vector2.X += 4 * mountedPlayer.direction;
4551 }
4552 if (num2 > 0)
4553 {
4554 vector2 += mountedPlayer.velocity * (float)(num2 / 3);
4555 }
4556 Vector2 pos = mountedPlayer.Center + vector2 + vector;
4557 pos = mountedPlayer.RotatedRelativePoint(pos);
4558 Dust dust = Dust.NewDustPerfect(pos, dustType);
4559 dust.noGravity = true;
4560 dust.fadeIn = 0.6f;
4561 dust.scale = 1.2f;
4562 dust.velocity *= 0.2f;
4563 if (num < 1f)
4564 {
4565 dust.velocity.X -= 0.5f * (float)mountedPlayer.direction;
4566 }
4567 dust.shader = GameShaders.Armor.GetSecondaryShader(mountedPlayer.cMinecart, mountedPlayer);
4568 }
4569 }
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Dust.NewDustPerfect(), and Terraria.Main.rand.

Referenced by Terraria.Mount.UpdateEffects().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: