Guest User

Untitled

a guest
Nov 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. //Calculate level
  2. Level = Math.Max( Math.Floor(6.7f * Math.Log(Experience + 455f) + -40f), 1 );
  3.  
  4. //Calculate experience for level
  5. Experience = (long)(Math.Exp((Level - -40f) / 6.7f) - 455f);
Add Comment
Please, Sign In to add comment