equal
deleted
inserted
replaced
192 loc("Use the rope to complete the obstacle course!"), -amRope, 0) |
192 loc("Use the rope to complete the obstacle course!"), -amRope, 0) |
193 FollowGear(hog) |
193 FollowGear(hog) |
194 end |
194 end |
195 |
195 |
196 function onNewTurn() |
196 function onNewTurn() |
|
197 local ctrl = "" |
197 if not wasFirstTurn then |
198 if not wasFirstTurn then |
|
199 if INTERFACE == "desktop" then |
|
200 ctrl = loc("Open ammo menu: [Right click]") |
|
201 elseif INTERFACE == "touch" then |
|
202 ctrl = loc("Open ammo menu: Tap the [suitcase]") |
|
203 end |
198 ShowMission(loc("Basic Rope Training"), loc("Select Rope"), |
204 ShowMission(loc("Basic Rope Training"), loc("Select Rope"), |
199 loc("Select the rope to begin!").."|".. |
205 loc("Select the rope to begin!").."|".. |
200 loc("Open ammo menu: [Right click]"), 2, 7500) |
206 ctrl, 2, 7500) |
201 wasFirstTurn = true |
207 wasFirstTurn = true |
202 end |
208 end |
203 if isInMineChallenge then |
209 if isInMineChallenge then |
204 resetMineChallenge() |
210 resetMineChallenge() |
205 end |
211 end |
210 return |
216 return |
211 end |
217 end |
212 |
218 |
213 -- First rope selection |
219 -- First rope selection |
214 if not ropeSelected and GetCurAmmoType() == amRope then |
220 if not ropeSelected and GetCurAmmoType() == amRope then |
|
221 local ctrl = "" |
|
222 if INTERFACE == "desktop" then |
|
223 ctrl = loc("Aim: [Up]/[Down]").."|".. |
|
224 loc("Attack: [Space]") |
|
225 elseif INTERFACE == "touch" then |
|
226 ctrl = loc("Aim: [Up]/[Down]").."|".. |
|
227 loc("Attack: Tap the [bomb]") |
|
228 end |
215 ShowMission(loc("Basic Rope Training"), loc("Getting Started"), |
229 ShowMission(loc("Basic Rope Training"), loc("Getting Started"), |
216 loc("You can use the rope to reach new places.").."|".. |
230 loc("You can use the rope to reach new places.").."|".. |
217 loc("Aim at the ceiling and hold [Attack] pressed until the rope attaches.").."|".. |
231 loc("Aim at the ceiling and hold [Attack] pressed until the rope attaches.").."|".. |
218 loc("Aim: [Up]/[Down]").."|".. |
232 ctrl, 2, 15000) |
219 loc("Attack: [Space]"), 2, 15000) |
|
220 ropeSelected = true |
233 ropeSelected = true |
221 -- Rope attach |
234 -- Rope attach |
222 elseif ropeGear and band(GetState(ropeGear), gstCollision) ~= 0 then |
235 elseif ropeGear and band(GetState(ropeGear), gstCollision) ~= 0 then |
223 -- First rope attach |
236 -- First rope attach |
224 if not ropeAttached and not target1Reached then |
237 if not ropeAttached and not target1Reached then |
365 eraseGirder(3) |
378 eraseGirder(3) |
366 end |
379 end |
367 elseif GetGearType(gear) == gtRope then |
380 elseif GetGearType(gear) == gtRope then |
368 ropeGear = nil |
381 ropeGear = nil |
369 if ropeAttached and not target1Reached then |
382 if ropeAttached and not target1Reached then |
|
383 local ctrl = "" |
|
384 if INTERFACE == "desktop" then |
|
385 ctrl = loc("Aim: [Up]/[Down]").."|".. |
|
386 loc("Attack: [Space]") |
|
387 elseif INTERFACE == "touch" then |
|
388 ctrl = loc("Aim: [Up]/[Down]").."|".. |
|
389 loc("Attack: Tap the [bomb]") |
|
390 end |
370 ShowMission(loc("Basic Rope Training"), loc("How to Rope"), |
391 ShowMission(loc("Basic Rope Training"), loc("How to Rope"), |
371 loc("Go to the target.").."|".. |
392 loc("Go to the target.").."|".. |
372 loc("Hold [Attack] to attach the rope.").."|".. |
393 loc("Hold [Attack] to attach the rope.").."|".. |
373 loc("Aim: [Up]/[Down]").."|".. |
394 ctrl, 2, 13000) |
374 loc("Attack: [Space]"), 2, 13000) |
|
375 ropeAttached = false |
395 ropeAttached = false |
376 end |
396 end |
377 elseif GetGearType(gear) == gtMine then |
397 elseif GetGearType(gear) == gtMine then |
378 mines[gear] = nil |
398 mines[gear] = nil |
379 elseif GetGearType(gear) == gtCase then |
399 elseif GetGearType(gear) == gtCase then |