Merge pull request #364 from Shadowss/patch-65

fix starvation , now work like real travian , forget something important
This commit is contained in:
yi12345
2013-09-27 03:48:56 -07:00
+6
View File
@@ -3644,6 +3644,12 @@ $wallimg = "<img src=\"".GP_LOCATE."img/g/g3".$targettribe."Icon.gif\" height=\"
$croptrue=$database->getUserField($who,"b4",0);
if($croptrue > time()) {
$crop*=1.25;
if(!empty($bountyresarray['vref']) && is_numeric($bountyresarray['vref'])){
$who=$database->getVillageField($bountyresarray['vref'],"owner");
$croptrue=$database->getUserField($who,"b4",0);
if($croptrue > time()) {
$crop*=1.25;
}
}
$crop *= SPEED;
return round($crop);