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

◆ ShowVisuals()

override void Terraria.ModLoader.CloudInABottleJump.ShowVisuals ( Player player)
inlinevirtual

Spawn effects that should appear while the player is performing this jump here.
Only runs while the jump is P:Terraria.DataStructures.ExtraJumpState.Active
For example, the Sandstorm in a Bottle's dusts are spawned here.

Parameters
playerThe player performing the jump

Reimplemented from Terraria.ModLoader.ExtraJump.

Definition at line 45 of file CloudInABottleJump.cs.

46 {
47 //IL_0036: Unknown result type (might be due to invalid IL or missing references)
48 //IL_0072: Unknown result type (might be due to invalid IL or missing references)
49 //IL_0078: Unknown result type (might be due to invalid IL or missing references)
50 int num = player.height;
51 if (player.gravDir == -1f)
52 {
53 num = -6;
54 }
55 int num2 = Dust.NewDust(new Vector2(player.position.X - 4f, player.position.Y + (float)num), player.width + 8, 4, 16, (0f - player.velocity.X) * 0.5f, player.velocity.Y * 0.5f, 100, default(Color), 1.5f);
56 Main.dust[num2].velocity.X = Main.dust[num2].velocity.X * 0.5f - player.velocity.X * 0.1f;
57 Main.dust[num2].velocity.Y = Main.dust[num2].velocity.Y * 0.5f - player.velocity.Y * 0.3f;
58 }

References Terraria.Main.dust, Terraria.Player.gravDir, Terraria.Entity.height, Terraria.Dust.NewDust(), Terraria.Entity.position, Terraria.Entity.velocity, and Terraria.Entity.width.

+ Here is the call graph for this function: