fix starvation , now work like real travian , forget something important

This commit is contained in:
Shadowss
2013-09-27 13:07:11 +03:00
parent d099009afd
commit d64e1b37b7
+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);