Update grenade training to support bounciness in Touch
authorWuzzy <Wuzzy2@mail.ru>
Thu, 10 Jan 2019 18:05:48 +0100
changeset 14544 c36d67d6366d
parent 14543 1dab5d92aca7
child 14545 ed90b5e2545b
Update grenade training to support bounciness in Touch
share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua
--- a/share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua	Thu Jan 10 17:54:58 2019 +0100
+++ b/share/hedgewars/Data/Missions/Training/Basic_Training_-_Grenade.lua	Thu Jan 10 18:05:48 2019 +0100
@@ -98,12 +98,8 @@
 	elseif gamePhase == 4 then
 		AddGear(1318, 208, gtTarget, 0, 0, 0, 0)
 		AddGear(1697, 250, gtTarget, 0, 0, 0, 0)
-		if INTERFACE ~= "touch" then
-			-- These targets may be too hard in touch interface because you cannot set bounciness yet
-			-- FIXME: Allow these targets in touch when bounciness can be set
-			AddGear(323, 960, gtTarget, 0, 0, 0, 0)
-			AddGear(1852, 100, gtTarget, 0, 0, 0, 0)
-		end
+		AddGear(323, 960, gtTarget, 0, 0, 0, 0)
+		AddGear(1852, 100, gtTarget, 0, 0, 0, 0)
 	-- Grand Final
 	elseif gamePhase == 5 then
 		AddGear(186, 473, gtTarget, 0, 0, 0, 0)
@@ -165,16 +161,14 @@
 		spawnTargets()
 	elseif gamePhase == 4 then
 		local caption = loc("Bounciness")
+		ctrl = loc("You can set the bounciness of grenades (and grenade-like weapons).").."|"..
+		loc("Grenades with high bounciness bounce a lot and behave chaotic.").."|"..
+		loc("With low bounciness, it barely bounces at all, but it is much more predictable.").."|"..
+		loc("Try out different bounciness levels to reach difficult targets.").."|"
 		if INTERFACE == "desktop" then
-			ctrl = loc("You can set the bounciness of grenades (and grenade-like weapons).").."|"..
-			loc("Grenades with high bounciness bounce a lot and behave chaotic.").."|"..
-			loc("With low bounciness, it barely bounces at all, but it is much more predictable.").."|"..
-			loc("Try out different bounciness levels to reach difficult targets.").."|"..
-			loc("Set bounciness: [Left Shift] + [1]-[5]")
+			ctrl = ctrl .. loc("Set bounciness: [Left Shift] + [1]-[5]")
 		elseif INTERFACE == "touch" then
-			-- FIXME: Bounciness can't be set in touch yet. :(
-			caption = loc("Well done.")
-			ctrl = loc("You're doing well! Here are more targets for you.")
+			ctrl = ctrl .. loc("Change bounciness: Tap [B]")
 		end
 
 		ShowMission(loc("Basic Grenade Training"), caption, ctrl, 2, 20000)