hedgewars/uAIAmmoTests.pas
changeset 15744 97a9ac5d4c83
parent 15743 b74ce48abdea
child 15749 82fd124e6512
equal deleted inserted replaced
15743:b74ce48abdea 15744:97a9ac5d4c83
  1958             ap.ExplY:= EY;
  1958             ap.ExplY:= EY;
  1959             valueResult:= value
  1959             valueResult:= value
  1960             end;
  1960             end;
  1961         end
  1961         end
  1962 until rTime > 5050 - Level * 800;
  1962 until rTime > 5050 - Level * 800;
       
  1963 if valueResult <> BadTurn then
       
  1964     // 27/20 is reuse bonus
       
  1965     valueResult:= valueResult * 27 div 20;
  1963 TestSMine:= valueResult
  1966 TestSMine:= valueResult
  1964 end;
  1967 end;
  1965 
  1968 
  1966 function TestPiano(Me: PGear; Targ: TTarget; Level: LongInt; var ap: TAttackParams; Flags: LongWord): LongInt;
  1969 function TestPiano(Me: PGear; Targ: TTarget; Level: LongInt; var ap: TAttackParams; Flags: LongWord): LongInt;
  1967 const BOUNCES = 5;
  1970 const BOUNCES = 5;