equal
deleted
inserted
replaced
34 FlushPoints() |
34 FlushPoints() |
35 end |
35 end |
36 end |
36 end |
37 |
37 |
38 local function challengeRecordToString(recordType, value) |
38 local function challengeRecordToString(recordType, value) |
39 if recordType == "TimeRecord" or recordType == "TimeRecordHigh" then |
39 if recordType == "TimeRecord" then |
40 return string.format(loc("Team record: %.3fs"), value/1000) |
40 return string.format(loc("Team's best time: %.3fs"), value/1000) |
|
41 elseif recordType == "TimeRecordHigh" then |
|
42 return string.format(loc("Team's longest time: %.3fs"), value/1000) |
41 elseif recordType == "Highscore" then |
43 elseif recordType == "Highscore" then |
42 return string.format(loc("Team high score: %d"), value) |
44 return string.format(loc("Team highscore: %d"), value) |
43 else |
45 elseif recordType == "Lowscore" then |
44 return string.format(loc("Team record: %d"), value) |
46 return string.format(loc("Team lowscore: %d"), value) |
45 end |
47 end |
46 end |
48 end |
47 |
49 |
48 function getReadableChallengeRecord(recordType) |
50 function getReadableChallengeRecord(recordType) |
49 local record = tonumber(GetMissionVar(recordType)) |
51 local record = tonumber(GetMissionVar(recordType)) |