mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-28 14:17:15 +00:00
Merge pull request #412 from Shadowss/patch-83
fix New Village must build a rally point
This commit is contained in:
@@ -469,14 +469,16 @@ if($type==18 or $type==19 or $type==20 or $type==21){
|
|||||||
$enough_cp = false;
|
$enough_cp = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$otext = ($oasis['name']);
|
$otext = ($oasis['name']);
|
||||||
if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp) {
|
if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) {
|
||||||
$test = "<a href=\"a2b.php?id=".$_GET['d']."&s=1\">» Found new village.</a>";
|
$test = "<a href=\"a2b.php?id=".$_GET['d']."&s=1\">» Found new village.</a>";
|
||||||
} 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)";
|
$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)";
|
$test = "» Found new village. (".$village->unitarray['u'.$session->tribe.'0']."/3 settlers available)";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo ($basearray['fieldtype']==0)?
|
echo ($basearray['fieldtype']==0)?
|
||||||
($village->resarray['f39']==0)?
|
($village->resarray['f39']==0)?
|
||||||
|
|||||||
Reference in New Issue
Block a user