Skip to content

Commit

Permalink
fix: actual default jump height (sorry)
Browse files Browse the repository at this point in the history
  • Loading branch information
TisRyno committed Apr 11, 2024
1 parent 1cbc7b8 commit 659bc0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions LethalProgression/XP.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,9 @@ public void UpdatePlayerJumpHeight_S2CMessage(PlayerJumpHeightData playerData)
Skill skill = LP_NetworkManager.xpInstance.skillList.skills[UpgradeType.JumpHeight];

// 10 is 100%. So if 1 level adds 1% more, then it is 10 * 1.01.
float addedJump = playerData.jumpSkillValue * skill.GetMultiplier() / 100f * 10f;
float addedJump = playerData.jumpSkillValue * skill.GetMultiplier() / 100f * 13f;

playerController.jumpForce = 10f + addedJump;
playerController.jumpForce = 13f + addedJump;

LethalPlugin.Log.LogInfo($"Updating client {playerData.clientId} jump height. Adding {addedJump} resulting in {playerController.jumpForce} jump force");
}
Expand Down

0 comments on commit 659bc0f

Please sign in to comment.