From d64e1b37b717def1e20f3fe34c00ec47af032784 Mon Sep 17 00:00:00 2001 From: Shadowss Date: Fri, 27 Sep 2013 13:07:11 +0300 Subject: [PATCH] fix starvation , now work like real travian , forget something important --- GameEngine/Automation.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 3ba8a447..4efb2357 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -3644,6 +3644,12 @@ $wallimg = "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);