From e62c3b1eac798044c705b77495ddcb793971ee57 Mon Sep 17 00:00:00 2001 From: BrainiacX Date: Fri, 30 Mar 2012 00:32:27 +0400 Subject: [PATCH] Update GameEngine/Database/db_MYSQL.php --- GameEngine/Database/db_MYSQL.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/GameEngine/Database/db_MYSQL.php b/GameEngine/Database/db_MYSQL.php index 055ecc6f..88c34ef7 100644 --- a/GameEngine/Database/db_MYSQL.php +++ b/GameEngine/Database/db_MYSQL.php @@ -1897,7 +1897,10 @@ $stables = array(4, 5, 6, 15, 16, 23, 24, 25, 26, 35, 36, 45, 46); $workshop = array(7, 8, 17, 18, 27, 28, 37, 38, 47, 48); $residence = array(9, 10, 19, 20, 29, 30, 39, 40, 49, 50); - + $greatstables = array(64,65,66,75,76,83,84,85,86,95,96,105,106,); + $greatbarracks = array(61,62,63,71,72,73,84,81,82,91,92,93,94,101,102,103,104,111,112,113,114); + $greatworkshop = array(67,68,77,78,87,88,97,98,107,108); + if(in_array($unit, $barracks)) { $queued = $technology->getTrainingList(1); } elseif(in_array($unit, $stables)) { @@ -1906,7 +1909,13 @@ $queued = $technology->getTrainingList(3); } elseif(in_array($unit, $residence)) { $queued = $technology->getTrainingList(4); - } + } elseif(in_array($unit, $greatstables)) { + $queued = $technology->getTrainingList(6); + } elseif(in_array($unit, $greatbarracks)) { + $queued = $technology->getTrainingList(5); + } elseif(in_array($unit, $greatworkshop)) { + $queued = $technology->getTrainingList(7); + } if(count($queued) > 0) { $time = $queued[count($queued) - 1]['commence'] + $queued[count($queued) - 1]['eachtime'] * $queued[count($queued) - 1]['amt']; }