hedgewars/uAI.pas
changeset 8884 08fe08651130
parent 8865 dd4035ee0f12
child 8908 d3033e3a4113
equal deleted inserted replaced
8882:73d6d7f27945 8884:08fe08651130
   359     StartTicks, currHedgehogIndex, itHedgehog, switchesNum, i: Longword;
   359     StartTicks, currHedgehogIndex, itHedgehog, switchesNum, i: Longword;
   360     switchImmediatelyAvailable: boolean;
   360     switchImmediatelyAvailable: boolean;
   361     Actions: TActions;
   361     Actions: TActions;
   362 begin
   362 begin
   363 AddFileLog('Thread started');
   363 AddFileLog('Thread started');
       
   364 dmgMod:= 0.01 * hwFloat2Float(cDamageModifier) * cDamagePercent;
   364 StartTicks:= GameTicks;
   365 StartTicks:= GameTicks;
   365 currHedgehogIndex:= CurrentTeam^.CurrHedgehog;
   366 currHedgehogIndex:= CurrentTeam^.CurrHedgehog;
   366 itHedgehog:= currHedgehogIndex;
   367 itHedgehog:= currHedgehogIndex;
   367 switchesNum:= 0;
   368 switchesNum:= 0;
   368 
   369