mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
Fix comma_value result treated as an int (#1087)
This commit is contained in:
parent
190131a1b8
commit
28c2f46f13
@ -300,7 +300,7 @@ function onLevelChange(localPlayer, value, percent)
|
|||||||
local hoursLeft = (nextLevelExp - localPlayer:getExperience()) / expPerHour
|
local hoursLeft = (nextLevelExp - localPlayer:getExperience()) / expPerHour
|
||||||
local minutesLeft = math.floor((hoursLeft - math.floor(hoursLeft))*60)
|
local minutesLeft = math.floor((hoursLeft - math.floor(hoursLeft))*60)
|
||||||
hoursLeft = math.floor(hoursLeft)
|
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)
|
text = text .. '\n' .. tr('Next level in %d hours and %d minutes', hoursLeft, minutesLeft)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user