Rope training: Show hint after destroying barrels
authorWuzzy <Wuzzy2@mail.ru>
Sat, 15 Dec 2018 01:57:09 +0100
changeset 14475 fd34b9037c69
parent 14474 09bfe9df51e9
child 14476 df366c5b8440
Rope training: Show hint after destroying barrels
share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Sat Dec 15 01:29:47 2018 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Rope.lua	Sat Dec 15 01:57:09 2018 +0100
@@ -242,7 +242,7 @@
 			loc("Swing: [Left]/[Right]").."|"..
 			loc("Release rope: [Attack]"), 2, 15000)
 			ropeAttached = true
-		elseif currentTarget > 1 then
+		elseif currentTarget > 1 and not (currentTarget == 6 and barrelsBoom) then
 			HideMission()
 		end
 	end
@@ -376,6 +376,10 @@
 			AddAmmo(hog, amBaseballBat, 100)
 			eraseGirder(2)
 			eraseGirder(3)
+			ShowMission(loc("Basic Rope Training"),
+				loc("Kaboom!"),
+				loc("Follow the path and destroy the next target."),
+				2, 5000)
 		end
 	elseif GetGearType(gear) == gtRope then
 		ropeGear = nil