Increase chance for AI to use tardis over skip
authorWuzzy <almikes@aol.com>
Fri, 20 Oct 2017 13:34:05 +0200
changeset 12713 927b35f59a46
parent 12712 31f7e0a31736
child 12714 5a57acce9cae
Increase chance for AI to use tardis over skip
hedgewars/uAI.pas
--- a/hedgewars/uAI.pas	Fri Oct 20 13:27:48 2017 +0200
+++ b/hedgewars/uAI.pas	Fri Oct 20 13:34:05 2017 +0200
@@ -474,7 +474,7 @@
 
             // Hog has no idea what to do. Use tardis or skip
             if not bonuses.activity then
-                if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(3) < 1) then
+                if ((HHHasAmmo(Me^.Hedgehog^, amTardis) > 0)) and (CanUseTardis(Me^.Hedgehog^.Gear)) and (random(4) < 3) then
                     // Tardis brings hog to a random place. Perfect for clueless AI
                     begin
                     AddAction(BestActions, aia_Weapon, Longword(amTardis), 80, 0, 0);