Skip to content

Commit

Permalink
Revert "fix misleading hunger information"
Browse files Browse the repository at this point in the history
This reverts commit 9e19a80.
  • Loading branch information
giantcavespider committed Nov 24, 2024
1 parent 9e19a80 commit fbbda28
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions interface/scripted/statWindow/extraStatsWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fbbda28

Please sign in to comment.