From fe80ca29ec83b61c2d1f2767855e308db4c34d8d Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 16 May 2012 16:32:33 +0300 Subject: [PATCH] now gold down when use master builder --- GameEngine/Automation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GameEngine/Automation.php b/GameEngine/Automation.php index 7375d6e2..9c058e3b 100644 --- a/GameEngine/Automation.php +++ b/GameEngine/Automation.php @@ -2941,7 +2941,7 @@ private function demolitionComplete() { $database->updateBuildingWithMaster($master['id'],$time,1); } $usergold = $database->getUserField($owner,'gold',0); - $gold = $usergold; + $gold = $usergold-1; $database->updateUserField($owner,'gold',$gold,1); $database->modifyResource($master['wid'],$buildwood,$buildclay,$buildiron,$buildcrop,0); }