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

◆ ShowVisuals()

override void Terraria.ModLoader.UnicornMountJump.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 60 of file UnicornMountJump.cs.

61 {
62 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
63 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
64 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
65 //IL_0052: Unknown result type (might be due to invalid IL or missing references)
66 //IL_0057: Unknown result type (might be due to invalid IL or missing references)
67 Dust obj = Main.dust[Dust.NewDust(player.position, player.width, player.height, Utils.SelectRandom<int>(Main.rand, 176, 177, 179))];
68 obj.velocity = Vector2.Zero;
69 obj.noGravity = true;
70 obj.scale = 0.5f + Main.rand.NextFloat() * 0.8f;
71 obj.fadeIn = 1f + Main.rand.NextFloat() * 2f;
72 obj.shader = GameShaders.Armor.GetSecondaryShader(player.cMount, player);
73 }
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.cMount, Terraria.Main.dust, Terraria.Entity.height, Terraria.Dust.NewDust(), Terraria.Entity.position, Terraria.Main.rand, and Terraria.Entity.width.

+ Here is the call graph for this function: