equal
deleted
inserted
replaced
53 } |
53 } |
54 TargetPracticeMission(params) |
54 TargetPracticeMission(params) |
55 ----- snip ----- |
55 ----- snip ----- |
56 ]=] |
56 ]=] |
57 |
57 |
|
58 HedgewarsScriptLoad("/Scripts/Utils.lua") |
58 HedgewarsScriptLoad("/Scripts/Locale.lua") |
59 HedgewarsScriptLoad("/Scripts/Locale.lua") |
59 |
60 |
60 local player = nil |
61 local player = nil |
61 local scored = 0 |
62 local scored = 0 |
62 local shots = 0 |
63 local shots = 0 |
165 SetGearPosition(player, params.hog_x, params.hog_y) |
166 SetGearPosition(player, params.hog_x, params.hog_y) |
166 end |
167 end |
167 |
168 |
168 _G.onGameStart = function() |
169 _G.onGameStart = function() |
169 SendHealthStatsOff() |
170 SendHealthStatsOff() |
170 ShowMission(params.missionTitle, loc("Aiming practice"), params.goalText, -params.ammoType, 5000) |
171 local recordInfo = getReadableChallengeRecord("Highscore") |
|
172 ShowMission(params.missionTitle, loc("Aiming practice"), params.goalText .. "|" .. recordInfo, -params.ammoType, 5000) |
171 SetTeamLabel(params.teamName, "0") |
173 SetTeamLabel(params.teamName, "0") |
172 spawnTarget() |
174 spawnTarget() |
173 end |
175 end |
174 |
176 |
175 _G.onNewTurn = function() |
177 _G.onNewTurn = function() |
315 end |
317 end |
316 end_score_overall = end_score_targets |
318 end_score_overall = end_score_targets |
317 end |
319 end |
318 SendStat(siPointType, loc("point(s)")) |
320 SendStat(siPointType, loc("point(s)")) |
319 SendStat(siPlayerKills, tostring(end_score_overall), loc(params.teamName)) |
321 SendStat(siPlayerKills, tostring(end_score_overall), loc(params.teamName)) |
|
322 -- Update highscore |
|
323 updateChallengeRecord("Highscore", end_score_overall) |
320 end |
324 end |
321 end |
325 end |