From fbbda287fd18fee2ba9f49848e747d398f9087ab Mon Sep 17 00:00:00 2001 From: giantcavespider Date: Sun, 24 Nov 2024 17:48:05 -0600 Subject: [PATCH] Revert "fix misleading hunger information" This reverts commit 9e19a800ee507b7f6bd2461b56a8a095abde382a. --- interface/scripted/statWindow/extraStatsWindow.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/interface/scripted/statWindow/extraStatsWindow.lua b/interface/scripted/statWindow/extraStatsWindow.lua index 000a6f8cd2d..050140034a9 100644 --- a/interface/scripted/statWindow/extraStatsWindow.lua +++ b/interface/scripted/statWindow/extraStatsWindow.lua @@ -48,9 +48,12 @@ function update() elseif type == "food" then local foodVal=status.isResource("food") and status.resourceMax("food") or 0 if foodVal~=0 then - if value > 0 then value=0 end value=math.abs(shorten(foodVal/(value*60.0))) - widget.setText(stat, tostring(value)) + if value % 1 == 0 then + widget.setText(stat, tostring(math.floor(value))) + else + widget.setText(stat, tostring(value)) + end else widget.setText(stat, "---") end