Restore level 119 for hero

Restore level 119 for hero
This commit is contained in:
novgorodschi catalin
2026-07-30 10:15:51 +03:00
parent a9977edc5c
commit fd9e9fa3cb
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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;