From a8832847d846c0018e0abd9105ae9909c7cc6d45 Mon Sep 17 00:00:00 2001 From: novgorodschi catalin Date: Tue, 28 Jul 2026 13:38:45 +0300 Subject: [PATCH] Add level 120 for hero Add level 120 for hero --- Admin/Templates/editHero.tpl | 4 ++-- Admin/Templates/playerheroinfo.tpl | 2 +- GameEngine/Admin/Mods/editHero.php | 2 +- GameEngine/Data/hero_full.php | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Admin/Templates/editHero.tpl b/Admin/Templates/editHero.tpl index 35a7f1f6..df1617ab 100644 --- a/Admin/Templates/editHero.tpl +++ b/Admin/Templates/editHero.tpl @@ -195,7 +195,7 @@ function go_url(url){ location=url; return false; }
- ⚠ Hero is at the maximum level () — no more points can be added. + ⚠ Hero is at the maximum level () — no more points can be added.
diff --git a/Admin/Templates/playerheroinfo.tpl b/Admin/Templates/playerheroinfo.tpl index b8542821..41cf2583 100644 --- a/Admin/Templates/playerheroinfo.tpl +++ b/Admin/Templates/playerheroinfo.tpl @@ -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 : 119; + $hMaxLevel = isset($hero_levels) ? max(array_keys($hero_levels)) - 1 : 120; $hMaxPoints = 5 + ($hMaxLevel * 5); $count_level_exp = max(0, $hMaxPoints - $used); if ($h['points'] > $count_level_exp) $h['points'] = $count_level_exp; diff --git a/GameEngine/Admin/Mods/editHero.php b/GameEngine/Admin/Mods/editHero.php index 86e69eda..43732667 100755 --- a/GameEngine/Admin/Mods/editHero.php +++ b/GameEngine/Admin/Mods/editHero.php @@ -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); diff --git a/GameEngine/Data/hero_full.php b/GameEngine/Data/hero_full.php index 31ffba7d..2671b58d 100755 --- a/GameEngine/Data/hero_full.php +++ b/GameEngine/Data/hero_full.php @@ -20,7 +20,7 @@ ## --------------------------------------------------------------------------- ## ################################################################################# - $hero_levels = array(0 => 0, 100, 300, 600, 1000, 1500, 2100, 2800, 3600, 4500, 5500, 6600, 7800, 9100, 10500, 12000, 13600, 15300, 17100, 19000, 21000, 23100, 25300, 27600, 30000, 32500, 35100, 37800, 40600, 43500, 46500, 49600, 52800, 56100, 59500, 63000, 66600, 70300, 74100, 78000, 82000, 86100, 90300, 94600, 99000, 103500, 108100, 112800, 117600, 122500, 127500, 132600, 137800, 143100, 148500, 154000, 159600, 165300, 171100, 177000, 183000, 189100, 195300, 201600, 208000, 214500, 221100, 227800, 234600, 241500, 248500, 255600, 262800, 270100, 277500, 285000, 292600, 300300, 308100, 316000, 324000, 332100, 340300, 348600, 357000, 365500, 374100, 382800, 391600, 400500, 409500, 418600, 427800, 437100, 446500, 456000, 465600, 475300, 485100, 495000, 505000, 515100, 525300, 535600, 546000, 556500, 567100, 577800, 588600, 599500, 610500, 621600, 632800, 644100, 655500, 667000, 678600, 690300, 702100, 714000, 714000); + $hero_levels = array(0 => 0, 100, 300, 600, 1000, 1500, 2100, 2800, 3600, 4500, 5500, 6600, 7800, 9100, 10500, 12000, 13600, 15300, 17100, 19000, 21000, 23100, 25300, 27600, 30000, 32500, 35100, 37800, 40600, 43500, 46500, 49600, 52800, 56100, 59500, 63000, 66600, 70300, 74100, 78000, 82000, 86100, 90300, 94600, 99000, 103500, 108100, 112800, 117600, 122500, 127500, 132600, 137800, 143100, 148500, 154000, 159600, 165300, 171100, 177000, 183000, 189100, 195300, 201600, 208000, 214500, 221100, 227800, 234600, 241500, 248500, 255600, 262800, 270100, 277500, 285000, 292600, 300300, 308100, 316000, 324000, 332100, 340300, 348600, 357000, 365500, 374100, 382800, 391600, 400500, 409500, 418600, 427800, 437100, 446500, 456000, 465600, 475300, 485100, 495000, 505000, 515100, 525300, 535600, 546000, 556500, 567100, 577800, 588600, 599500, 610500, 621600, 632800, 644100, 655500, 667000, 678600, 690300, 702100, 714000, 726000, 726000); //ROMAN UNITS