From 50a42c8346925590814edd8c76a13b158f3ddecf Mon Sep 17 00:00:00 2001 From: Lari Nieminen Date: Sun, 5 Sep 2010 08:58:00 +0000 Subject: [PATCH] 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. --- data/lua/wml/objectives.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/data/lua/wml/objectives.lua b/data/lua/wml/objectives.lua index af425d3c268..1b86540d4b0 100644 --- a/data/lua/wml/objectives.lua +++ b/data/lua/wml/objectives.lua @@ -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 = " " .. string.format(tostring(_"(current_turn/turn_limit)^(%d/%d)"), current_turn, turn_limit) .. "" + if turn_limit - current_turn + 1 > 1 then + turn_counter = " " .. string.format(tostring(_"(%d turns left)"), turn_limit - current_turn + 1) .. "" + else + turn_counter = " " .. "(this turn left)" .. "" + end end end