From c408f02aa7ab1c30433a08b48f83fbf8dd54f30a Mon Sep 17 00:00:00 2001 From: Shadow Date: Wed, 19 Feb 2014 12:42:51 +0200 Subject: [PATCH] Update newdorf.tpl --- Templates/a2b/newdorf.tpl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Templates/a2b/newdorf.tpl b/Templates/a2b/newdorf.tpl index 728969ef..cf7beb9a 100644 --- a/Templates/a2b/newdorf.tpl +++ b/Templates/a2b/newdorf.tpl @@ -1,5 +1,8 @@ awood); +$clay = round($village->aclay); +$iron = round($village->airon); +$crop = round($village->acrop); $founder = $database->getVillage($village->wid); $newvillage = $database->getMInfo($_GET['id']); $eigen = $database->getCoor($village->wid); @@ -79,17 +82,12 @@ echo '';

getProfileVillages($session->uid)); -$need_cps = ${'cp'.$mode}[$total+1]; -$cps = $session->cp; - -if($cps >= $need_cps) { +if ($wood>749 && $clay>749 && $iron>749 && $crop>749) { ?> Not enough resource"; } ?>