# HG changeset patch # User Wuzzy # Date 1602161128 -7200 # Node ID 97a9ac5d4c8359c237fa78ea4b14b00ba2daeaea # Parent b74ce48abdea65ae3630fc991c185ed85cd29227 AI: Add reuse bonus to SMine (like shotgun) diff -r b74ce48abdea -r 97a9ac5d4c83 hedgewars/uAIAmmoTests.pas --- a/hedgewars/uAIAmmoTests.pas Thu Oct 08 14:43:00 2020 +0200 +++ b/hedgewars/uAIAmmoTests.pas Thu Oct 08 14:45:28 2020 +0200 @@ -1960,6 +1960,9 @@ end; end until rTime > 5050 - Level * 800; +if valueResult <> BadTurn then + // 27/20 is reuse bonus + valueResult:= valueResult * 27 div 20; TestSMine:= valueResult end;