NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

NEW TRIBES ENHANCEMENT (Huns, Egipteans, Spartans & Vikings) #327

Please be advised, is not fully tested so if you activate on install maybe is not fully working
This commit is contained in:
novgorodschi catalin
2026-07-14 09:25:26 +03:00
parent 60a2d3b206
commit 25c8925ef6
315 changed files with 8609 additions and 615 deletions
+5 -3
View File
@@ -19,15 +19,17 @@
## --------------------------------------------------------------------------- ##
#################################################################################
global $session, $technology, $village, $database, $generator, $building, $bid20, $bid41, $id;
global $session, $technology, $village, $database, $generator, $building, $bid20, $bid41, $id, $unitsbytype;
$tribe = (int)$session->tribe;
$start = ($tribe - 1) * 10 + 4 - ($tribe == 3 ? 1 : 0) + ($tribe == 2 ? 1 : 0);
$end = $tribe * 10 - 4;
$start = ($tribe - 1) * 10 + 1;
$end = $tribe * 10;
$success = 0;
$horseTrough = $building->getTypeLevel(41);
for ($i = $start; $i <= $end; $i++) {
// doar cavaleria tribului (generic: acopera si triburile 6-9)
if (!in_array($i, $unitsbytype['cavalry'])) continue;
if (!$technology->getTech($i)) continue;
$unitData = ${'u'.$i};