mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 22:13:27 +02:00
Fix comma_value result treated as an int (#1087)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user