mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-03 00:47:19 +00:00
Restore level 119 for hero
Restore level 119 for hero
This commit is contained in:
@@ -150,7 +150,7 @@ if ($hero !== false) {
|
||||
+ (int)$h['defencebonus'] + (int)$h['regeneration'] + (int)($h['resources'] ?? 0);
|
||||
|
||||
// totalul de puncte vine din tabelul de niveluri: 5 initiale + 5 per nivel
|
||||
$hMaxLevel = isset($hero_levels) ? max(array_keys($hero_levels)) - 1 : 120;
|
||||
$hMaxLevel = isset($hero_levels) ? max(array_keys($hero_levels)) - 1 : 119;
|
||||
$hMaxPoints = 5 + ($hMaxLevel * 5);
|
||||
$count_level_exp = max(0, $hMaxPoints - $used);
|
||||
if ($h['points'] > $count_level_exp) $h['points'] = $count_level_exp;
|
||||
|
||||
Reference in New Issue
Block a user