From 76373c4510a9d227c32dee04a36663865b0b4053 Mon Sep 17 00:00:00 2001 From: ogamemaster Date: Tue, 31 May 2016 18:54:08 +0300 Subject: [PATCH] Update class.ShowResearchPage.php requirements for build. research, shipyard --- includes/pages/game/class.ShowResearchPage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/pages/game/class.ShowResearchPage.php b/includes/pages/game/class.ShowResearchPage.php index ed18cc0..7439cac 100644 --- a/includes/pages/game/class.ShowResearchPage.php +++ b/includes/pages/game/class.ShowResearchPage.php @@ -392,6 +392,11 @@ public function show() $GetAll = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_vars_requriements` WHERE elementID = ".$Element." ;"); if($GLOBALS['DATABASE']->numRows($GetAll)>0){ while($x = $GLOBALS['DATABASE']->fetch_array($GetAll)){ + if($x['requireID'] <= 99){ + $x['rlevel'] = $PLANET[$resource[$x['requireID']]]; + }else{ + $x['rlevel'] = $USER[$resource[$x['requireID']]]; + } $AllTech[] = $x; } } @@ -488,4 +493,4 @@ public function show() $this->display('page.research.default.tpl'); } -} \ No newline at end of file +}