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

◆ JumpSpeed()

float Terraria.Mount.JumpSpeed ( Player player,
float xVelocity )
inline

Definition at line 2402 of file Mount.cs.

2403 {
2404 float num = _data.jumpSpeed;
2405 switch (_type)
2406 {
2407 case 0:
2408 case 1:
2409 num += Math.Abs(xVelocity) / 7f;
2410 break;
2411 case 4:
2412 case 49:
2413 if (_frameState == 4)
2414 {
2415 num += 2.5f;
2416 }
2417 break;
2418 }
2419 if (_shouldSuperCart)
2420 {
2422 }
2424 return num;
2425 }
static void JumpSpeed(Player mountedPlayer, Mount.MountData mount, ref float jumpSpeed, float xVelocity)
This serves as the central place from which mounts are stored and mount-related functions are carried...
MountData _data
Definition Mount.cs:290
static float SuperCartJumpSpeed
Definition Mount.cs:344
bool _shouldSuperCart
Definition Mount.cs:328
int _frameState
Definition Mount.cs:304

References Terraria.Mount._data, Terraria.Mount._frameState, Terraria.Mount._shouldSuperCart, Terraria.Mount._type, Terraria.ModLoader.MountLoader.JumpSpeed(), Terraria.Mount.MountData.jumpSpeed, and Terraria.Mount.SuperCartJumpSpeed.

Referenced by Terraria.Player.UpdateJumpHeight().

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