Flying Saucer training: Make Grenade Drop Target a bit easier
authorWuzzy <Wuzzy2@mail.ru>
Tue, 14 May 2019 15:52:53 +0200
changeset 14960 7b597da60fda
parent 14959 59ed712057a6
child 14961 8b848c2939da
Flying Saucer training: Make Grenade Drop Target a bit easier
share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua	Tue May 14 13:46:30 2019 +0200
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Flying_Saucer.lua	Tue May 14 15:52:53 2019 +0200
@@ -112,7 +112,8 @@
 	MessageTime = 6500,
 	Message = loc("Now dive just one more time and collect the next crate.") .. "|" ..
 		loc("Tip: Don't remain for too long in the water, or you won't make it."),
-	Ammo = { [amJetpack] = 2 }, }
+	Ammo = { [amJetpack] = 2 },
+	Respawn = { X = 1968, Y = -1, FaceLeft = true }, }
 
 -- The Grenade Drop Target
 local BoomTarget = 8
@@ -242,6 +243,9 @@
 	if Barrels[2] == nil then
 		Barrels[2] = AddGear(1648, 463, gtExplosives, 0, 0, 0, 0)
 	end
+	if Barrels[3] == nil then
+		Barrels[3] = AddGear(1513, 575, gtExplosives, 0, 0, 0, 0)
+	end
 
 	for i=1,#Barrels do
 		SetHealth(Barrels[i], 1)
@@ -519,6 +523,9 @@
 		Barrels[2] = nil
 		AddCaption(loc("Kaboom!"), capcolDefault, capgrpMessage)
 	end
+	if Gear == Barrels[3] then
+		Barrels[3] = nil
+	end
 end