mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 00:27:12 +00:00
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:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user