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

◆ UpdateHorizontalSpeeds()

override void Terraria.ModLoader.UnicornMountJump.UpdateHorizontalSpeeds ( Player player)
inlinevirtual

Modify the player's horizontal movement while performing this jump here.
Only runs while the jump is P:Terraria.DataStructures.ExtraJumpState.Active

Vanilla's jumps use the following values:

Basilisk mount: runAcceleration *= 3; maxRunSpeed *= 1.5;
Blizzard in a Bottle: runAcceleration *= 3; maxRunSpeed *= 1.5;
Cloud in a Bottle: no change
Fart in a Jar: runAcceleration *= 3; maxRunSpeed *= 1.75;
Goat mount: runAcceleration *= 3; maxRunSpeed *= 1.5;
Sandstorm in a Bottle: runAcceleration *= 1.5; maxRunSpeed *= 2;
Santank mount: runAcceleration *= 3; maxRunSpeed *= 1.5;
Tsunami in a Bottle: runAcceleration *= 1.5; maxRunSpeed *= 1.25;
Unicorn mount: runAcceleration *= 3; maxRunSpeed *= 1.5;

Parameters
playerThe player performing the jump

Reimplemented from Terraria.ModLoader.ExtraJump.

Definition at line 75 of file UnicornMountJump.cs.

76 {
77 player.runAcceleration *= 3f;
78 player.maxRunSpeed *= 1.5f;
79 }