hedgewars/HHHandlers.inc
changeset 2202 29508a2924c2
parent 2177 c045698e044f
child 2221 ef52dae4130b
equal deleted inserted replaced
2201:6b14d6da9a49 2202:29508a2924c2
   235 	if ((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_Utility) = 0 then
   235 	if ((Ammo^[CurSlot, CurAmmo].Propz) and ammoprop_Utility) = 0 then
   236 		begin
   236 		begin
   237 		Inc(AttacksNum);
   237 		Inc(AttacksNum);
   238 		if (Ammo^[CurSlot, CurAmmo].NumPerTurn >= AttacksNum) or
   238 		if (Ammo^[CurSlot, CurAmmo].NumPerTurn >= AttacksNum) or
   239 		((GameFlags and gfMultiWeapon) <> 0) then
   239 		((GameFlags and gfMultiWeapon) <> 0) then
       
   240             begin
       
   241             AddCaption(inttostr(Ammo^[CurSlot, CurAmmo].NumPerTurn+1-AttacksNum)+' '+trmsg[sidRemaining], $FFFFFF, capgrpAmmostate);
   240 			isInMultiShoot:= true
   242 			isInMultiShoot:= true
       
   243             end
   241 		else
   244 		else
   242 			begin
   245 			begin
   243 			TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   246 			TurnTimeLeft:= Ammoz[Ammo^[CurSlot, CurAmmo].AmmoType].TimeAfterTurn;
   244 			State:= State or gstAttacked;
   247 			State:= State or gstAttacked;
   245 			OnUsedAmmo(CurrentHedgehog^);
   248 			OnUsedAmmo(CurrentHedgehog^);