From 74297ac15c4b181a0b401b394bc99b4665e2e2ad Mon Sep 17 00:00:00 2001 From: Shadowss Date: Wed, 21 Aug 2013 12:49:36 +0300 Subject: [PATCH] fix town hall , issue with crop production on second party --- Templates/Build/24_1.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Templates/Build/24_1.tpl b/Templates/Build/24_1.tpl index fbb19b59..aa4f0c85 100644 --- a/Templates/Build/24_1.tpl +++ b/Templates/Build/24_1.tpl @@ -56,8 +56,12 @@ "; } else if(29700 > $village->awood || 33250 > $village->aclay || 32000 > $village->airon || 6700 > $village->acrop) { + if($village->getProd("crop")>0){ $time = $technology->calculateAvaliable(24,$cel[2]); echo "
Enough resources ".$time[0]." at ".$time[1].""; + } else { + echo "
Crop production is negative so you will never reach the required resources"; + } echo "
Too few
resources
";