Browse Source

Increase level-up difficulty factor

Skylar Ittner 2 years ago
parent
commit
b02acb4c18
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      attackplace.php
  2. 1
    1
      claimplace.php

+ 1
- 1
attackplace.php View File

@@ -41,7 +41,7 @@ if ($placehp < 0) {
41 41
 }
42 42
 
43 43
 // Update the user's health and level
44
-$exp = pow(pow(floor($user['level']) + 1, 2), -0.9);
44
+$exp = pow(pow(floor($user['level']) + 1, 2), -1.2);
45 45
 $userlevel = $user['level'] + $exp;
46 46
 // If the new level is a whole int bigger than the current
47 47
 $dolevelup = false;

+ 1
- 1
claimplace.php View File

@@ -29,7 +29,7 @@ if ($userhp < 0) {
29 29
 }
30 30
 
31 31
 // Update the user's health and level
32
-$exp = pow(pow(floor($user['level']) + 1, 2), -0.9);
32
+$exp = pow(pow(floor($user['level']) + 1, 2), -1.2);
33 33
 $userlevel = $user['level'] + $exp;
34 34
 // If the new level is a whole int bigger than the current
35 35
 $dolevelup = false;

Loading…
Cancel
Save