diff --git a/includes/pages/game/class.ShowBuildingsPage.php b/includes/pages/game/class.ShowBuildingsPage.php index d7211a5..53956b7 100644 --- a/includes/pages/game/class.ShowBuildingsPage.php +++ b/includes/pages/game/class.ShowBuildingsPage.php @@ -337,6 +337,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; } } @@ -539,4 +544,4 @@ public function show() $this->display('page.buildings.default.tpl'); } -} \ No newline at end of file +}