# HG changeset patch # User nemo # Date 1442175812 14400 # Node ID 22d8835beb4da35a782cfe8e58413d646fd29fb6 # Parent 1b386b9e1be0b5586de9777b6ab06cf06fcc9447 Allow for arbitrary number of airstrike bombs and spacing. diff -r 1b386b9e1be0 -r 22d8835beb4d hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Sun Sep 13 15:36:06 2015 -0400 +++ b/hedgewars/uGearsHandlersMess.pas Sun Sep 13 16:23:32 2015 -0400 @@ -2675,7 +2675,7 @@ //4: FollowGear := AddGear(hwRound(Gear^.X), hwRound(Gear^.Y), gtWaterMelon, 0, cBombsSpeed * // Gear^.Tag, _0, 5000); end; - Gear^.dX := Gear^.dX + int2hwFloat(30 * Gear^.Tag); + Gear^.dX := Gear^.dX + int2hwFloat(Gear^.Damage * Gear^.Tag); if CheckCoordInWater(hwRound(Gear^.X), hwRound(Gear^.Y)) then FollowGear^.State:= FollowGear^.State or gstSubmersible; StopSoundChan(Gear^.SoundChannel, 4000); @@ -2708,7 +2708,7 @@ end; Gear^.Y := int2hwFloat(topY-300); - Gear^.dX := int2hwFloat(Gear^.Target.X - 5 * Gear^.Tag * 15); + Gear^.dX := int2hwFloat(Gear^.Target.X) - int2hwFloat(Gear^.Tag * Gear^.Health * Gear^.Damage) / 2; // calcs for Napalm Strike, so that it will hit the target (without wind at least :P) if (Gear^.State = 2) then diff -r 1b386b9e1be0 -r 22d8835beb4d hedgewars/uGearsList.pas --- a/hedgewars/uGearsList.pas Sun Sep 13 15:36:06 2015 -0400 +++ b/hedgewars/uGearsList.pas Sun Sep 13 16:23:32 2015 -0400 @@ -466,7 +466,8 @@ gear^.Tag:= Y end; gtAirAttack: begin - gear^.Health:= 6; + gear^.Health:= 12; + gear^.Damage:= 30; gear^.Z:= cHHZ+2; gear^.Tint:= gear^.Hedgehog^.Team^.Clan^.Color shl 8 or $FF end;