matias-kovero/BetterUI

Remaining time for food buffs always shows "10m" (Hearth & Home)

Opened this issue · 1 comments

phtnk commented

Hey,
found the culprit here. Remaining time got its own variable in "Player.Food.m_time", and needs to be accessed in the update loop. Not sure how, when or where they even did that before, still fighting through the code.

If someone uses a mod for no food degradation - so being at 100% for the entire duration - the flashing of the icon might get a bit annoying as it starts at halftime as usual. Not sure if that was the way it worked before, but if needed, I have a fix in my repo for that, too, but didn't want to include it here, as it's in the same method.
The time itself starts to flash with 60 seconds left, same as vanilla.

This is my first attempt of properly using github - and what a mess it became - so if I missed something to do here, please let me know.