[[User:GlassDeviant|GlassDeviant]] ([[User talk:GlassDeviant|talk]]) 00:43, 8 January 2017 (UTC)
==Actual Values for Health/Energy==
As of PC v1.2.33, for reference, in <tt>Game1::doneEating</tt>, the energy that is is added upon eating an item is
<code>(int)Math.Ceiling((double)Edibility * 2.5) + quality * Edibility</code>
Health added upon eating an item is
<code>Math.Min(Game1.player.maxHealth, Game1.player.health + ((Edibility < 0) ? 0 : ((int)((float)num * 0.45f))))</code>
The Energy value displayed on the tooltip of an edible item is found in <tt>IClickableMenu::drawHoverText</tt>.
Energy tooltip = <code>(int)Math.Ceiling((double)Edibility * 2.5) + quality * Edibility</code>
Health tooltip = <code>Energy * (int)((float)healAmountToDisplay * 0.4f)</code>
--[[User:Margotbean|margotbean]] ([[User talk:Margotbean|talk]]) 19:00, 28 March 2018 (BST)