# HG changeset patch # User nemo # Date 1442172966 14400 # Node ID 1b386b9e1be0b5586de9777b6ab06cf06fcc9447 # Parent c75f87d4bb6444fc418a62181c3176fe44247a55 Move health:= 6 to gear addition so lua can more easily override it. diff -r c75f87d4bb64 -r 1b386b9e1be0 hedgewars/uGearsHandlersMess.pas --- a/hedgewars/uGearsHandlersMess.pas Sat Sep 12 21:13:35 2015 +0200 +++ b/hedgewars/uGearsHandlersMess.pas Sun Sep 13 15:36:06 2015 -0400 @@ -2718,7 +2718,6 @@ Gear^.dX := Gear^.dX - cBombsSpeed * hwSqrt((int2hwFloat(Gear^.Target.Y) - Gear^.Y) * 2 / cGravity) * Gear^.Tag; - Gear^.Health := 6; Gear^.doStep := @doStepAirAttackWork; Gear^.SoundChannel := LoopSound(sndPlane, 4000); diff -r c75f87d4bb64 -r 1b386b9e1be0 hedgewars/uGearsList.pas --- a/hedgewars/uGearsList.pas Sat Sep 12 21:13:35 2015 +0200 +++ b/hedgewars/uGearsList.pas Sun Sep 13 15:36:06 2015 -0400 @@ -466,6 +466,7 @@ gear^.Tag:= Y end; gtAirAttack: begin + gear^.Health:= 6; gear^.Z:= cHHZ+2; gear^.Tint:= gear^.Hedgehog^.Team^.Clan^.Color shl 8 or $FF end;