From 6b73de8eed2e63eee5eaa61c759589fca666f838 Mon Sep 17 00:00:00 2001 From: Shadow Date: Wed, 12 Mar 2014 09:23:20 +0200 Subject: [PATCH] vacation mode --- Templates/Map/vilview.tpl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Templates/Map/vilview.tpl b/Templates/Map/vilview.tpl index 98761eae..e81d48ca 100644 --- a/Templates/Map/vilview.tpl +++ b/Templates/Map/vilview.tpl @@ -494,6 +494,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){ $data2 = mysql_fetch_assoc($query2); if($data2['access']=='0' or $data2['access']=='8' or $data2['access']=='9') { echo "» ".SENDTROOP." (".BAN.")"; + } else if($data2['vac_mode']=='1') { + echo "» Send troops. (Vacation mode on)"; } else if($data2['protect'] < time()) { echo $village->resarray['f39']? "» ".SENDTROOP : "» ".SENDTROOP." (".BUILDRALLY.")"; } else { @@ -507,6 +509,8 @@ if($type==18 or $type==19 or $type==20 or $type==21){ getTypeLevel(17)? "getTypeField(17) . "\">» ".SENDMERC : "» ".SENDMERC ."(".BUILDMARKET.")"; }