equal
deleted
inserted
replaced
15 -- 'L' that is set by the game (string). |
15 -- 'L' that is set by the game (string). |
16 -- Text may then be accessed using "arrayname[L]". |
16 -- Text may then be accessed using "arrayname[L]". |
17 |
17 |
18 local caption = { |
18 local caption = { |
19 ["en"] = "Sniper Training", |
19 ["en"] = "Sniper Training", |
20 ["de"] = "Scharfschützen-Training" |
20 ["de"] = "Scharfschützen-Training", |
|
21 ["pt_PT"] = "Treino com Sniper" |
21 -- To add other languages, just add lines similar to the |
22 -- To add other languages, just add lines similar to the |
22 -- existing ones - don't forget the trailing ","! |
23 -- existing ones - don't forget the trailing ","! |
23 } |
24 } |
24 |
25 |
25 local subcaption = { |
26 local subcaption = { |
190 game_lost = true |
191 game_lost = true |
191 -- ... and show a short message. |
192 -- ... and show a short message. |
192 ShowMission(loc(caption), loc(subcaption), loc(timeout), -amSkip, 0); |
193 ShowMission(loc(caption), loc(subcaption), loc(timeout), -amSkip, 0); |
193 -- How about killing our poor hog due to his poor performance? |
194 -- How about killing our poor hog due to his poor performance? |
194 SetHealth(player, 0); |
195 SetHealth(player, 0); |
195 TurnTimeLeft = 0 |
|
196 -- Just to be sure set the goal time to 1 ms |
196 -- Just to be sure set the goal time to 1 ms |
197 time_goal = 1 |
197 time_goal = 1 |
198 end |
198 end |
199 -- If the goal is reached or we've lost ... |
199 -- If the goal is reached or we've lost ... |
200 if score == score_goal or game_lost then |
200 if score == score_goal or game_lost then |