Fixed login
Started building page cleanup Modified code pools Backported layout/blocks/templates 3-step view system Reforged Overview page Moved graphics, added topnav template, fixed number render bug Added BCMath optionnal usage Updated BC Math comparison for capped resources Fixed planet resource production updates Various additions Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
3fd8832b45
commit
f2d4b0f7e2
384 changed files with 2727 additions and 1364 deletions
|
|
@ -34,11 +34,9 @@
|
|||
* @param unknown_type $CurrentPlanet
|
||||
* @param unknown_type $CurrentUser
|
||||
*/
|
||||
function BatimentBuildingPage (&$CurrentPlanet, $CurrentUser) {
|
||||
trigger_error(sprintf('%s is deprecated', __FUNCTION__), E_USER_DEPRECATED);
|
||||
global $lang, $resource, $reslist, $dpath, $gameConfig, $_GET;
|
||||
|
||||
CheckPlanetUsedFields ( $CurrentPlanet );
|
||||
function BatimentBuildingPage($CurrentPlanet, $CurrentUser)
|
||||
{
|
||||
global $lang, $resource, $reslist, $dpath, $gameConfig;
|
||||
|
||||
// Tables des batiments possibles par type de planete
|
||||
$Allowed['1'] = array( 1, 2, 3, 4, 12, 14, 15, 21, 22, 23, 24, 31, 33, 34, 44);
|
||||
|
|
@ -100,15 +98,8 @@ function BatimentBuildingPage (&$CurrentPlanet, $CurrentUser) {
|
|||
}
|
||||
}
|
||||
|
||||
SetNextQueueElementOnTop ( $CurrentPlanet, $CurrentUser );
|
||||
|
||||
$Queue = ShowBuildingQueue ( $CurrentPlanet, $CurrentUser );
|
||||
|
||||
// On enregistre ce que l'on a modifi<66> dans planet !
|
||||
BuildingSavePlanetRecord ( $CurrentPlanet );
|
||||
// On enregistre ce que l'on a eventuellement modifi<66> dans users
|
||||
BuildingSaveUserRecord ( $CurrentUser );
|
||||
|
||||
if ($Queue['lenght'] < MAX_BUILDING_QUEUE_SIZE) {
|
||||
$CanBuildElement = true;
|
||||
} else {
|
||||
|
|
@ -206,4 +197,3 @@ function BatimentBuildingPage (&$CurrentPlanet, $CurrentUser) {
|
|||
|
||||
display($page, $lang['Builds']);
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Reference in a new issue