Skip to content

Commit

Permalink
fix misleading hunger information
Browse files Browse the repository at this point in the history
  • Loading branch information
giantcavespider committed Nov 24, 2024
1 parent b7e07e8 commit 9e19a80
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions interface/scripted/statWindow/extraStatsWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ 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)))
if value % 1 == 0 then
widget.setText(stat, tostring(math.floor(value)))
else
widget.setText(stat, tostring(value))
end
widget.setText(stat, tostring(value))
else
widget.setText(stat, "---")
end
Expand Down

0 comments on commit 9e19a80

Please sign in to comment.