hedgewars/uAI.pas
changeset 545 f527450337c1
parent 544 9e068d2398ca
child 553 5478386d935f
equal deleted inserted replaced
544:9e068d2398ca 545:f527450337c1
    56 BestActions.Count:= 0;
    56 BestActions.Count:= 0;
    57 BestActions.Pos:= 0
    57 BestActions.Pos:= 0
    58 end;
    58 end;
    59 
    59 
    60 procedure TestAmmos(var Actions: TActions; Me: PGear; isMoved: boolean);
    60 procedure TestAmmos(var Actions: TActions; Me: PGear; isMoved: boolean);
    61 var Time, BotLevel: Longword;
    61 var BotLevel: Longword;
    62     ap: TAttackParams;
    62     ap: TAttackParams;
    63     Score, i: LongInt;
    63     Score, i: LongInt;
    64     a, aa: TAmmoType;
    64     a, aa: TAmmoType;
    65 begin
    65 begin
    66 BotLevel:= PHedgehog(Me^.Hedgehog)^.BotLevel;
    66 BotLevel:= PHedgehog(Me^.Hedgehog)^.BotLevel;