hedgewars/uAIAmmoTests.pas
changeset 5642 0ce9e01bae56
parent 5164 a2a67433633d
child 5645 b434ba5d064e
--- a/hedgewars/uAIAmmoTests.pas	Sun Aug 21 22:41:10 2011 -0400
+++ b/hedgewars/uAIAmmoTests.pas	Mon Aug 22 17:22:11 2011 +0400
@@ -558,10 +558,13 @@
      begin
      x:= x + vX * 8;
      y:= y + vY * 8;
-     valueResult:= RateShotgun(Me, rx, ry) * 2;
-     if valueResult = 0 then valueResult:= - Metric(Targ.X, Targ.Y, rx, ry) div 64
-                   else dec(valueResult, Level * 4000);
-     exit(valueResult)
+     valueResult:= RateShotgun(Me, rx, ry);
+     
+     if valueResult = 0 then 
+        valueResult:= - Metric(Targ.X, Targ.Y, rx, ry) div 64
+        else 
+        dec(valueResult, Level * 4000);
+     exit(valueResult * 27 div 20) // 27/20 is reuse bonus
      end
 until (Abs(Targ.X - hwRound(x)) + Abs(Targ.Y - hwRound(y)) < 4)
     or (x.isNegative)