From 28c2f46f13cc7d77edce0e5d6515be7eebf269c3 Mon Sep 17 00:00:00 2001 From: Oscar <osc.car2@gmail.com> Date: Sat, 9 May 2020 16:32:19 +0200 Subject: [PATCH] Fix comma_value result treated as an int (#1087) --- modules/game_skills/skills.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/game_skills/skills.lua b/modules/game_skills/skills.lua index 114c9a6c..fc892012 100644 --- a/modules/game_skills/skills.lua +++ b/modules/game_skills/skills.lua @@ -300,7 +300,7 @@ function onLevelChange(localPlayer, value, percent) local hoursLeft = (nextLevelExp - localPlayer:getExperience()) / expPerHour local minutesLeft = math.floor((hoursLeft - math.floor(hoursLeft))*60) hoursLeft = math.floor(hoursLeft) - text = text .. '\n' .. tr('%d of experience per hour', comma_value(expPerHour)) + text = text .. '\n' .. tr('%s of experience per hour', comma_value(expPerHour)) text = text .. '\n' .. tr('Next level in %d hours and %d minutes', hoursLeft, minutesLeft) end end