Changes

Jump to navigation Jump to search
1,140 bytes added ,  07:47, 21 February 2022
Added section about energy restoration
Line 28: Line 28:  
==Leveling Up==
 
==Leveling Up==
 
The morning after a skill is leveled up (or after changing professions with at the [[The Sewers#Statue Of Uncertainty|Statue Of Uncertainty]]), the player awakens with 100% of maximum energy, regardless of the sleep or exhaustion calculation.
 
The morning after a skill is leveled up (or after changing professions with at the [[The Sewers#Statue Of Uncertainty|Statue Of Uncertainty]]), the player awakens with 100% of maximum energy, regardless of the sleep or exhaustion calculation.
 +
 +
==Restoration==
 +
Besides sleeping, certain actions can be taken to restore energy. These include: using the [[Spa]], being in a [[Bed]] while playing [[Multiplayer]], and eating certain edible items.
 +
 +
* While relaxing in the spa or swimming, the player's energy and health by 1 every 100ms until at their max, if they have not moved recently.<ref name="swimming"/>
 +
* While playing multiplayer, being in a bed will increase the player's energy and health by 1 every 500ms until at their max.<ref name="multiplayer_bed"/>
    
==Maximum Energy==
 
==Maximum Energy==
Line 51: Line 57:  
{{:Tom Kha Soup|RecipeRow}}
 
{{:Tom Kha Soup|RecipeRow}}
 
{{Recipes|footer}}
 
{{Recipes|footer}}
 +
 +
==References==
 +
<references>
 +
<ref name="swimming">The effects of the [[Spa]]/swimming are handled in <samp>Farmer::updateCommon</samp>, specifically in <samp>if (this.swimming)</samp>. It Checks whether the player has not moved in 800ms and at least 100ms has passed and increases health and energy by 1.</ref>
 +
<ref name="multiplayer_bed">The effects of a multiplayer bed are handled in <samp>Farmer::Update</samp>, specifically in <samp>if (this.isInBed && Game1.IsMultiplayer && Game1.shouldTimePass(false))</samp>. It Checks whether at least 500ms has passed and increases health and energy by 1.</ref>
 +
</references>
    
==History==
 
==History==

Navigation menu