Talk:Health

From Stardew Valley Wiki
Jump to: navigation, search
This talk page is for discussing Health.
  • Sign and date your posts by typing four tildes (~~~~).
  • Put new text below old text.
  • Be polite.
  • Assume good faith.
  • Don't delete discussions.

Healing item bug

This bug is discussed here Template_talk:Edibility. --Lilly (talk) 22:22, 6 January 2017 (UTC)

Losing health

You can also lose health when monsters are running free at night on the Wilderness Farm map, one of the alternate farm maps you can play on. Also, if you activate night monsters using a Strange Bun at the Dark Shrine of Night Terrors in the Witches Hut, you can lose health due to monster damage right on your farm on any of the maps.

GlassDeviant (talk) 00:43, 8 January 2017 (UTC)

Actual Values for Health/Energy

As of PC v1.2.33, for reference, in Game1::doneEating, the energy that is is added upon eating an item is

(int)Math.Ceiling((double)Edibility * 2.5) + quality * Edibility

Health added upon eating an item is

Math.Min(Game1.player.maxHealth, Game1.player.health + ((Edibility < 0) ? 0 : ((int)((float)num * 0.45f))))

The Energy value displayed on the tooltip of an edible item is found in IClickableMenu::drawHoverText.

Energy tooltip = (int)Math.Ceiling((double)Edibility * 2.5) + quality * Edibility

Health tooltip = Energy * (int)((float)healAmountToDisplay * 0.4f)

--margotbean (talk) 19:00, 28 March 2018 (BST)