Round the result
This commit is contained in:
1 parent
71cd1e0676
commit
18ac3ce0ca
1 file changed
+2
-2
@@ -257,7 +257,7 @@ Framework.GetHunger = function(src)
|
|||||||
|
|
||||||
for _, entry in ipairs(status) do
|
for _, entry in ipairs(status) do
|
||||||
if entry.name == "hunger" then
|
if entry.name == "hunger" then
|
||||||
return entry.percent
|
return math.floor(entry.percent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@@ -271,7 +271,7 @@ Framework.GetThirst = function(src)
|
|||||||
|
|
||||||
for _, entry in ipairs(status) do
|
for _, entry in ipairs(status) do
|
||||||
if entry.name == "thirst" then
|
if entry.name == "thirst" then
|
||||||
return entry.percent
|
return math.floor(entry.percent)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user