From d0b26a9eb3ddc34ac7814605217d00b40bc85808 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 25 Oct 2013 09:46:15 +0300 Subject: [PATCH] fix New Village must build a rally point --- Templates/Map/vilview.tpl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl index 9fe57a86..fae4e240 100644 --- a/Templates/Map/vilview.tpl +++ b/Templates/Map/vilview.tpl @@ -469,14 +469,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $enough_cp = false; } - $otext = ($oasis['name']); - if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) { + $otext = ($oasis['name']); + if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { $test = "» Found new village."; - } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { + } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { $test = "» Found new village. ($cps/$need_cps culture points)"; - } else { + } elseif(!$village->resarray['f39']) { + $test = "» Found new village. (build a rally point)"; + } else { $test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)"; - } + } echo ($basearray['fieldtype']==0)? ($village->resarray['f39']==0)?