mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-09 21:01:00 +00:00
Add level 120 for hero
Add level 120 for hero
This commit is contained in:
@@ -56,7 +56,7 @@ if (isset($_POST['id'], $_POST['hid'])) {
|
||||
$hunit = (int)($_POST['hunit'] ?? 0);
|
||||
// plafonul vine din tabelul de niveluri (ultimul index e santinela), ca sa
|
||||
// urmeze automat extinderea facuta pentru al 6-lea atribut
|
||||
$hMaxLevel = isset($hero_levels) ? max(array_keys($hero_levels)) - 1 : 119;
|
||||
$hMaxLevel = isset($hero_levels) ? max(array_keys($hero_levels)) - 1 : 120;
|
||||
$hlvl = max(0, min($hMaxLevel, (int)($_POST['hlvl'] ?? 0)));
|
||||
$exp = (int)($_POST['exp'] ?? 0);
|
||||
$hhealth = (float)($_POST['hhealth'] ?? 100);
|
||||
|
||||
Reference in New Issue
Block a user