Changes

Jump to navigation Jump to search
m
Text replacement - "tt>" to "samp>"
Line 26: Line 26:  
   health = (int)(energy * 0.4)
 
   health = (int)(energy * 0.4)
 
--[[User:BryghtShadow|BryghtShadow]] ([[User talk:BryghtShadow|talk]]) 04:08, 11 April 2016 (EDT)
 
--[[User:BryghtShadow|BryghtShadow]] ([[User talk:BryghtShadow|talk]]) 04:08, 11 April 2016 (EDT)
:: Those are indeed the implemented formulas. The actual value is computed in <tt>StardewValley.Game1:doneEating()</tt>. The tooltip value is computed in <tt>StardewValley.Menus.IClickableMenu:drawHoverText()</tt>, search for <tt>healAmountToDisplay</tt>. --[[User:Lilly|Lilly]] ([[User talk:Lilly|talk]]) 22:09, 6 January 2017 (UTC)
+
:: Those are indeed the implemented formulas. The actual value is computed in <samp>StardewValley.Game1:doneEating()</samp>. The tooltip value is computed in <samp>StardewValley.Menus.IClickableMenu:drawHoverText()</samp>, search for <samp>healAmountToDisplay</samp>. --[[User:Lilly|Lilly]] ([[User talk:Lilly|talk]]) 22:09, 6 January 2017 (UTC)
    
== Change in default values ==
 
== Change in default values ==
   −
I changed the default meaning of the "quality" parameter for this template as part of the changes I just made.  Up until now, the default value of quality was <tt>normal</tt> and <tt>normal</tt> was always forcibly included, even if for example <tt>quality=silver</tt> was set (i.e., the displayed values would be normal and silver).  This is completely different from every other quality-related template, plus the implicit need to use all of quality, iridium, and hide simultaneously to control the template is much too awkward.
+
I changed the default meaning of the "quality" parameter for this template as part of the changes I just made.  Up until now, the default value of quality was <samp>normal</samp> and <samp>normal</samp> was always forcibly included, even if for example <samp>quality=silver</samp> was set (i.e., the displayed values would be normal and silver).  This is completely different from every other quality-related template, plus the implicit need to use all of quality, iridium, and hide simultaneously to control the template is much too awkward.
   −
With my edit, it's now consistent with a bunch of other templates (Qualityprice, EdibilityGrid, Infobox, etc.).  The default value is now <tt>quality=true</tt> meaning <tt>Normal, Silver, Gold</tt>.  And specifying <tt>quality=silver</tt> means just <tt>Silver</tt> is displayed.
+
With my edit, it's now consistent with a bunch of other templates (Qualityprice, EdibilityGrid, Infobox, etc.).  The default value is now <samp>quality=true</samp> meaning <samp>Normal, Silver, Gold</samp>.  And specifying <samp>quality=silver</samp> means just <samp>Silver</samp> is displayed.
    
Besides consistency, etc., the reason I'm pushing this change now is that Edibility isn't widely used and only one (already-made and no-side-effect) edit is required anywhere else on the wiki to support this change.  I think the new features will expand its future usage, so it's better to get this quirk fixed now while it's easy to do. [[User:Nebulous Maestress|Nebulous Maestress]] ([[User talk:Nebulous Maestress|talk]]) 00:45, 4 September 2020 (UTC)
 
Besides consistency, etc., the reason I'm pushing this change now is that Edibility isn't widely used and only one (already-made and no-side-effect) edit is required anywhere else on the wiki to support this change.  I think the new features will expand its future usage, so it's better to get this quirk fixed now while it's easy to do. [[User:Nebulous Maestress|Nebulous Maestress]] ([[User talk:Nebulous Maestress|talk]]) 00:45, 4 September 2020 (UTC)
106,688

edits

Navigation menu