From c20b0a203316d873f3658c5f31aa19ad0d5cc7da Mon Sep 17 00:00:00 2001 From: Shadow Date: Sun, 16 Feb 2014 09:02:45 +0200 Subject: [PATCH] Update availupgrade.tpl --- Templates/Build/avaliable/availupgrade.tpl | 98 +++++++++++----------- 1 file changed, 50 insertions(+), 48 deletions(-) diff --git a/Templates/Build/avaliable/availupgrade.tpl b/Templates/Build/avaliable/availupgrade.tpl index 2f0f6907..f1695a62 100644 --- a/Templates/Build/avaliable/availupgrade.tpl +++ b/Templates/Build/avaliable/availupgrade.tpl @@ -1,4 +1,5 @@ canBuild($id,$bid); @@ -6,44 +7,45 @@ $loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0; $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; $uprequire = $building->resourceRequired($id,$bid); $mastertime = $uprequire['time']; +$_SESSION['mas'][$bid]=$bid.",".$id.",".$mastertime; ?> - Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); + Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { echo "|\"NPC"; } ?> - - - + + + The workers are already at work."; - if($session->goldclub == 1){ -?>
+ if($session->goldclub == 1){ +?>
gold >= 1 && $village->master == 0){ - echo "Constructing with master builder "; - echo '(costs: Gold1)'; - }else{ - echo "Constructing with master builder"; - echo '(costs: Gold1)'; - } - } + if($session->gold >= 1 && $village->master == 0){ + echo "checker\">Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } } else if($bindicator == 3) { echo "The workers are already at work. (waiting loop)"; - if($session->goldclub == 1){ -?>
+ if($session->goldclub == 1){ +?>
gold >= 1 && $village->master == 0){ - echo "Constructing with master builder "; - echo '(costs: Gold1)'; - }else{ - echo "Constructing with master builder"; - echo '(costs: Gold1)'; - } - } + if($session->gold >= 1 && $village->master == 0){ + echo "checker\">Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } } else if($bindicator == 4) { echo "Not enough food. Expand cropland."; @@ -55,33 +57,33 @@ $mastertime = $uprequire['time']; echo "Upgrade Granary."; } else if($bindicator == 7) { - $neededtime = $building->calculateAvaliable($id,$bid); - echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; - if($session->goldclub == 1){ -?>
+ $neededtime = $building->calculateAvaliable($id,$bid); + echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; + if($session->goldclub == 1){ +?>
gold >= 1 && $village->master == 0){ - echo "Constructing with master builder "; - echo '(costs: Gold1)'; - }else{ - echo "Constructing with master builder"; - echo '(costs: Gold1)'; - } - } + if($session->gold >= 1 && $village->master == 0){ + echo "checker\">Constructing with master builder "; + echo '(costs: Gold1)'; + }else{ + echo "Constructing with master builder"; + echo '(costs: Gold1)'; + } + } } else if($bindicator == 8) { - if($session->access!=BANNED){ - echo "checker."\">Construct building."; - }else{ - echo "Construct building."; - } + if($session->access!=BANNED){ + echo "checker\">Construct building."; + }else{ + echo "Construct building."; + } } else if($bindicator == 9) { - if($session->access!=BANNED){ - echo "checker."\">Construct building. (waiting loop)"; - }else{ - echo "checker."\">Construct building. (waiting loop)"; - } + if($session->access!=BANNED){ + echo "checker\">Construct building. (waiting loop)"; + }else{ + echo "checker\">Construct building. (waiting loop)"; } - ?> - \ No newline at end of file + } + ?> +