Advertisement
ryancarmon

RegnumLevelCalculator-getCurrentLevel

Dec 25th, 2012
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.62 KB | None | 0 0
  1. private int[] xp = {0,100,285,610,1185,2060,3385,5230,7725,10950,15125,20350,26805,34685,44110,                     55295,67670,81510,97095,114435,133610,154835,178210,203835,231950,262665,296090,332490,371825,414370,
  2.                         460245,509745,565880,628940,699405,777575,863950,959045,1063390,1177315,1301590,1436340,1582365,1740025,1909920,
  3.                         2092420,2319145,2595795,2925190,3310475,3754600,4260850,4832305,5472105,6183740,6970480,7835955,8783870,9817695,10940960};  
  4.  
  5. public void getCurrentLevel()
  6. {
  7.    for(int i=1;i<xp.length;i++)
  8.       if((xp[i-1]<=XPNow) &&  XPNow<=xp[i])
  9.          System.out.println("Charakter ist Stufe "+i);
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement