test.py 371 B

12345678910111213141516171819
  1. """Test"""
  2. BASELEVEL = 0
  3. BASEPERK = 0
  4. LEVELRANGE = range(30, 101)
  5. PERKRANGE = range(30, 401)
  6. for i in LEVELRANGE:
  7. BASELEVEL += pow(i+1, 0.8)-pow(i, 0.8)
  8. for i in PERKRANGE:
  9. BASEPERK += pow(80000+(200*(i+1))/10, 0.6)-pow(80000+(200*i)/10, 0.6)
  10. BASELEVEL /= len(LEVELRANGE)
  11. BASEPERK /= len(PERKRANGE)
  12. print(BASELEVEL)
  13. print(BASEPERK)
  14. print(BASEPERK/BASELEVEL)