mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 12:17:53 +00:00
Changed the objectives dialog's turn counter text from...
..."(turn_number/turn_limit)" to "(turns_left turns left)" and "(this turn left)" on the last turn.
This commit is contained in:
parent
1f0abc672d
commit
50a42c8346
@ -75,7 +75,11 @@ local function generate_objectives(cfg)
|
||||
local turn_limit = wesnoth.game_config.last_turn
|
||||
|
||||
if turn_limit >= current_turn then
|
||||
turn_counter = "<small> " .. string.format(tostring(_"(current_turn/turn_limit)^(%d/%d)"), current_turn, turn_limit) .. "</small>"
|
||||
if turn_limit - current_turn + 1 > 1 then
|
||||
turn_counter = "<small> " .. string.format(tostring(_"(%d turns left)"), turn_limit - current_turn + 1) .. "</small>"
|
||||
else
|
||||
turn_counter = "<small> " .. "(this turn left)" .. "</small>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user