Difference between revisions of "Energy"

From Stardew Valley Wiki
Jump to navigation Jump to search
(Add ways to obtain infinite energy)
 
(66 intermediate revisions by 30 users not shown)
Line 1: Line 1:
 
{{Basics-top}}
 
{{Basics-top}}
<div class="thumbinner" style="float: right; width: 65px; margin-left: 12px; text-align: center; font-size: smaller; padding-top: 6px;">[[File:Exhausted.png]]<p>''Exhaustion indicator''</p></div>
+
<div class="thumbinner" style="float: right; width: 65px; margin-left: 12px; text-align: center; font-size: smaller; padding-top: 6px;">
'''Energy''' is consumed by using tools, fishing, combat or eating negative energy food. It can be replenished by eating food or standing in the [[Spa]]. If the player is exhausted, restoration effects during sleep time are cut in half. Eating a [[Stardrop]] will permanently increase maximum energy by 34 points.
+
[[File:EnergyBar.png]]<p>''A slightly depleted energy bar''</p></div>
  
Players become exhausted when their energy drops to 0 or below. At this point, they are unable to run. Eating something will make them able to run again, but the exhaustion indicator will persist through the day.  Persisting in energy consuming activities will make them pass out, ending the day.  
+
A player requires '''Energy''' to use [[tools]], with the exception of [[scythe]]s, [[weapons]], and [[pans]]. Picking up or moving a chest with your empty hands also requires energy. Currently available energy is indicated on the player's energy bar, which reflects the decreases as a day progresses.
  
Consuming [[Harvey's Clinic|Muscle Remedy]] will remove the exhaustion indicator. If a player is [[Marriage|married]], kissing his/her spouse will remove the exhaustion indicator too; this only works for the first kiss of the day.  
+
Energy can be replenished up to its [[#Maximum Energy|maximum]] by eating positive-energy food. Consuming negative-energy foods such as [[Sap]] or [[Void Mayonnaise]] reduces energy. To consume food, put it on the hotbar (the top row of inventory) and press action ({{key|right-click}}) with it. A notification in the bottom left of the screen will display energy and health gained by eating food. Typically, more expensive food provides more energy than cheaper food items.
  
To consume food, put it on the hotbar (the top row of inventory) and {{key|right-click}} it. A notification in the bottom left of the screen will display energy and health gained by eating food. Typically, more expensive food will provide more energy than cheaper food items.
+
Standing in the [[Spa]] also restores energy at 10 points per second.<ref name="sparegenerationspeed" /> In a [[Multiplayer]] game, players may slowly restore energy by standing in bed at 2 points per second.<ref name="bedregenerationspeed" /> (If the "Go to bed" dialogue pops up, answer "No", and remain in place.)
  
Sleeping at the end of the day will fully restore the player's energy bar. If the player passes out or is exhausted when they go to bed, they'll wake up in the morning with less than 100% energy (roughly 50% - 75% energy). If the player passes out and is found by a Joja Team Member, a medical team will be summoned and the player will be charged up to {{price|1000}} for the service.
+
==Exhaustion==
 +
<div class="thumbinner" style="float: right; width: 65px; margin-left: 12px; text-align: center; font-size: smaller; padding-top: 6px;">
 +
[[File:Exhausted.png]]<p>''Exhaustion indicator''</p></div>
 +
The player becomes exhausted upon reaching 0 energy, indicated by an X dialogue bubble above the player's head and the notice "You feel sluggish from over-exertion." The player's movement speed is significantly reduced, weapons and tools take longer to use, and [[Tools#Fishing Poles|Fishing Poles]] can no longer be cast. Other energy-consuming tools can be used, but the player's energy level becomes negative. At -15 energy, the player passes out, ending the day. If the player passes out anywhere outside the house, the player will lose 10% of their money, up to {{Price|1000}}.
  
The Player starts the game with 270 energy. Up to a maximum of 508 energy can be achieved after eating every [[Stardrop]]. Certain [[Cooking|food]] can temporarily increase max energy.
+
Increasing energy back above zero (''e.g.,'' by eating food) will restore player movement and allow Fishing Poles to be cast again, but the player remains exhausted for the remainder of the day. There is no in-game indicator of this lingering exhaustion, but it results in a 50% reduction in that night's energy restoration. This after-effect can be avoided by curing exhaustion, either by consuming [[Harvey's Clinic|Muscle Remedy]], or (if [[Marriage|married]]) kissing the player's spouse for the first time in the day.<ref name="daily_kiss"/>
  
====Sleeping====
+
A few warning signs exist to notify the player before imminent exhaustion. If energy is less than 20, any energy-consuming activity makes the energy bar shake and emit beads of sweat. When energy first falls below 15, a notice appears stating "You're starting to feel exhausted." These are warnings, not indicators of true exhaustion, and have no effect on player activities or overnight energy restoration.
  
Sleeping restores the player's energy level depending on being exhausted or the time the player goes to bed. The player's energy will be restored to 100%, but this percentage is reduced to 50% if exhausted. Going to bed after 12:00AM reduces that by 2.5% per 10 minutes up until 01:00AM. Going to bed after 01:00AM reduces the new energy level by 25%, plus another 2.5% per 10 additional minutes. If the new energy level is below the player's energy level at the time they went to sleep, the player's energy level left unchanged and not reduced.
+
==Sleeping==
 +
Sleeping restores the player's initial energy level for the next day. Going to bed at or before 12:00AM normally restores energy to its maximum. However, if the player goes to bed late, passes out, or is exhausted, the amount of energy regained is reduced.
  
For example, sleeping at 12:10AM will result in the player waking up with 97.5% of their maximum energy. Going to bed exhausted at 1:50AM will restore the player to 12.5% of their maximum energy.
+
If the player goes to sleep exhausted, sleep removes the exhaustion, but energy restoration is reduced by 50%.
  
====Levelling Up====
+
Energy restoration is also reduced if the player goes to bed after 12:00AM. This reduction stacks additively with the exhausted penalty.
  
Levelling up a skill during the day will result in the player being restored to 100% energy when the skill increase screen is shown, which is after the sleeping calculation is performed. If you gained any skill level during the day, the player will wake up with 100% energy the next day.
+
The amount of energy reduction has been calculated in the below table.<ref name="sleep_calculation"/>
  
== Bugs ==
+
{| class="wikitable"
* Clicking on the Journal icon while in the middle of the "passing out from exhaustion" animation will prevent the player from actually passing out, and allow the player to resume activity. This exploit does not work if opening the journal using the {{key|F}} key.
+
|+ Late to Bed Penalty
 +
|-
 +
! Time !! Energy Loss
 +
|-
 +
| 12:10AM || -2.5%
 +
|-
 +
| 12:20AM || -5%
 +
|-
 +
| 12:30AM || -7.5%
 +
|-
 +
| 12:40AM || -10%
 +
|-
 +
| 12:50AM || -12.5%
 +
|-
 +
| 1:00AM || -25%
 +
|-
 +
| 1:10AM || -27.5%
 +
|-
 +
| 1:20AM || -30%
 +
|-
 +
| 1:30AM || -32.5%
 +
|-
 +
| 1:40AM || -35%
 +
|-
 +
| 1:50AM || -37.5%
 +
|-
 +
| 2:00AM || -50%
 +
|}
  
{{beta3|Players in a multiplayer game can slowly restore energy by standing in bed.<p>The Journal exploit no longer works (as of v1.3.20).}}
+
If the new day's calculated initial energy level is lower than the player's actual energy level at the time they went to sleep, the player's energy level is left unchanged and not reduced, unless they are exhausted.
 +
 
 +
A player cannot start a day with less than 1 energy.
 +
 
 +
===Leveling Up===
 +
The morning after a skill is leveled up (or after changing professions at the [[The Sewers#Statue Of Uncertainty|Statue Of Uncertainty]]), the player awakens with full 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 [[Furniture#Beds|Bed]] while playing [[Multiplayer]], and eating certain edible items.
 +
 
 +
* While relaxing in the spa or swimming, the player's energy and health increase by 1 every 100ms until both are full, if they have not moved recently.<ref name="swimming"/>
 +
* While being in a bed in multiplayer, the player's energy and health increase by 1 every 500ms until both are full.<ref name="multiplayer_bed"/>
 +
 
 +
==Maximum Energy==
 +
The player starts the game with 270 maximum energy. Eating a [[Stardrop]] permanently increases maximum energy by 34 points. Eating every Stardrop available in the game permanently increases maximum energy to 508.
 +
 
 +
Temporary increases in maximum energy are also possible. Up to two Max Energy [[#Buffs|buffs]] can be simultaneously active: one from a drink (namely, [[Green Tea]]) and one from a [[Cooking|food]]. The largest possible temporary value of maximum energy is therefore 588.
 +
{{Recipes|header}}
 +
{{:Bean Hotpot|RecipeRow}}
 +
{{:Complete Breakfast|RecipeRow}}
 +
|-
 +
|[[File:Green Tea.png|center]]
 +
|[[Green Tea]]
 +
|{{Description|Green Tea}}
 +
|{{name|Tea Leaves|1}}
 +
|data-sort-value="0013"|{{Energy|13}}{{Health|5}}
 +
|{{name|Max Energy|+30}}
 +
|{{duration|4m 12s}}
 +
|Produced in a [[Keg]]
 +
|data-sort-value="0100"|{{Price|100}}
 +
{{:Lobster Bisque|RecipeRow}}
 +
{{:Red Plate|RecipeRow}}
 +
{{:Super Meal|RecipeRow}}
 +
{{:Tom Kha Soup|RecipeRow}}
 +
{{Recipes|footer}}
 +
 
 +
==Infinite Energy==
 +
Energy requirement for tools can be removed by [[Tools#Tool enchantments|enchanting]] them. The '''Efficient''' enchantment causes no energy drain while the tool is being used.
 +
 
 +
It is also possible to obtain infinite energy for a whole day by using the [[Statue Of Blessings]] and obtaining [[Statue Of Blessings#List of Blessings|Blessing of Energy]]. This blessing is given at random, so there is no guarantee you will get it for a specific day.
 +
 
 +
==References==
 +
<references>
 +
<ref name="daily_kiss">The effects of the first kiss in a day are handled in <samp>NPC::checkAction</samp>, specifically in <samp>if (!this.hasBeenKissedToday.Value)</samp>.</ref>
 +
<ref name="sleep_calculation">Energy amounts for the next day are calculated in <samp>Farmer::dayupdate</samp>, specifically starting at <samp>oldStamina = this.Stamina</samp>.</ref>
 +
<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>
 +
    <ref name="sparegenerationspeed">See <samp>Farmer::updateCommon</samp> in the game code.</ref>
 +
    <ref name="bedregenerationspeed">See <samp>Farmer::Update</samp> in the game code.</ref>
 +
</references>
 +
 
 +
==History==
 +
{{History|1.3.27|Added energy regeneration while standing in bed for multiplayer. Removed exploit that allowed players to bypass "passing out" by clicking on the journal icon.}}
 +
{{History|1.4|All level-ups (including levels 5 and 10) now restore 100% energy.}}
 +
{{History|1.6|Added reference to Blessing of Energy.}}
  
 
[[Category:Game mechanics]]
 
[[Category:Game mechanics]]
Line 32: Line 117:
 
[[de:Energie]]
 
[[de:Energie]]
 
[[es:Energía]]
 
[[es:Energía]]
 +
[[fr:Énergie]]
 +
[[it:Energia]]
 
[[ja:エナジー]]
 
[[ja:エナジー]]
 +
[[ko:기력]]
 +
[[hu:Energia]]
 
[[pt:Energia]]
 
[[pt:Energia]]
 
[[ru:Энергия]]
 
[[ru:Энергия]]
 +
[[tr:Enerji]]
 
[[zh:能量]]
 
[[zh:能量]]

Latest revision as of 14:05, 3 April 2024

Getting
Started
The
Player
Options Controls Mobile
Controls
Health Energy Skills Day
Cycle
EnergyBar.png

A slightly depleted energy bar

A player requires Energy to use tools, with the exception of scythes, weapons, and pans. Picking up or moving a chest with your empty hands also requires energy. Currently available energy is indicated on the player's energy bar, which reflects the decreases as a day progresses.

Energy can be replenished up to its maximum by eating positive-energy food. Consuming negative-energy foods such as Sap or Void Mayonnaise reduces energy. To consume food, put it on the hotbar (the top row of inventory) and press action (right-click) with it. A notification in the bottom left of the screen will display energy and health gained by eating food. Typically, more expensive food provides more energy than cheaper food items.

Standing in the Spa also restores energy at 10 points per second.[1] In a Multiplayer game, players may slowly restore energy by standing in bed at 2 points per second.[2] (If the "Go to bed" dialogue pops up, answer "No", and remain in place.)

Exhaustion

Exhausted.png

Exhaustion indicator

The player becomes exhausted upon reaching 0 energy, indicated by an X dialogue bubble above the player's head and the notice "You feel sluggish from over-exertion." The player's movement speed is significantly reduced, weapons and tools take longer to use, and Fishing Poles can no longer be cast. Other energy-consuming tools can be used, but the player's energy level becomes negative. At -15 energy, the player passes out, ending the day. If the player passes out anywhere outside the house, the player will lose 10% of their money, up to data-sort-value="1000">Gold.png1,000g.

Increasing energy back above zero (e.g., by eating food) will restore player movement and allow Fishing Poles to be cast again, but the player remains exhausted for the remainder of the day. There is no in-game indicator of this lingering exhaustion, but it results in a 50% reduction in that night's energy restoration. This after-effect can be avoided by curing exhaustion, either by consuming Muscle Remedy, or (if married) kissing the player's spouse for the first time in the day.[3]

A few warning signs exist to notify the player before imminent exhaustion. If energy is less than 20, any energy-consuming activity makes the energy bar shake and emit beads of sweat. When energy first falls below 15, a notice appears stating "You're starting to feel exhausted." These are warnings, not indicators of true exhaustion, and have no effect on player activities or overnight energy restoration.

Sleeping

Sleeping restores the player's initial energy level for the next day. Going to bed at or before 12:00AM normally restores energy to its maximum. However, if the player goes to bed late, passes out, or is exhausted, the amount of energy regained is reduced.

If the player goes to sleep exhausted, sleep removes the exhaustion, but energy restoration is reduced by 50%.

Energy restoration is also reduced if the player goes to bed after 12:00AM. This reduction stacks additively with the exhausted penalty.

The amount of energy reduction has been calculated in the below table.[4]

Late to Bed Penalty
Time Energy Loss
12:10AM -2.5%
12:20AM -5%
12:30AM -7.5%
12:40AM -10%
12:50AM -12.5%
1:00AM -25%
1:10AM -27.5%
1:20AM -30%
1:30AM -32.5%
1:40AM -35%
1:50AM -37.5%
2:00AM -50%

If the new day's calculated initial energy level is lower than the player's actual energy level at the time they went to sleep, the player's energy level is left unchanged and not reduced, unless they are exhausted.

A player cannot start a day with less than 1 energy.

Leveling Up

The morning after a skill is leveled up (or after changing professions at the Statue Of Uncertainty), the player awakens with full 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 increase by 1 every 100ms until both are full, if they have not moved recently.[5]
  • While being in a bed in multiplayer, the player's energy and health increase by 1 every 500ms until both are full.[6]

Maximum Energy

The player starts the game with 270 maximum energy. Eating a Stardrop permanently increases maximum energy by 34 points. Eating every Stardrop available in the game permanently increases maximum energy to 508.

Temporary increases in maximum energy are also possible. Up to two Max Energy buffs can be simultaneously active: one from a drink (namely, Green Tea) and one from a food. The largest possible temporary value of maximum energy is therefore 588.

Image Name Description Ingredients Energy / Health Buff(s) Buff Duration Recipe Source(s) Sell Price
Bean Hotpot.png
Bean Hotpot It sure is healthy. Green Bean.png Green Bean (2) Energy.png 125
Health.png 56
Max Energy.png Max Energy (+30)Magnetism.png Magnetism (+32) Time Icon.png 7m

Clint Icon.png Clint (Mail - 7+ HeartIconLarge.png)

data-sort-value="100">Gold.png100g
Complete Breakfast.png
Complete Breakfast You'll feel ready to take on the world! Fried Egg.png Fried Egg (1)Milk.png Milk (1)Hashbrowns.png Hashbrowns (1)Pancakes.png Pancakes (1) Energy.png 200
Health.png 90
Farming.png Farming (+2)Max Energy.png Max Energy (+50) Time Icon.png 7m

Cooking Channel.png The Queen of Sauce
21 Spring, Year 2

data-sort-value="350">Gold.png350g
Green Tea.png
Green Tea A pleasant, energizing beverage made from lightly processed tea leaves. Tea Leaves.png Tea Leaves (1) Energy.png13Health.png5 Max Energy.png Max Energy (+30) Time Icon.png 4m 12s Produced in a Keg data-sort-value="100">Gold.png100g
Lobster Bisque.png
Lobster Bisque This delicate soup is a secret family recipe of Willy's. Lobster.png Lobster (1)Milk.png Milk (1) Energy.png 225
Health.png 101
Fishing.png Fishing (+3)Max Energy.png Max Energy (+50) Time Icon.png 16m 47s

Cooking Channel.png The Queen of Sauce
14 Winter, Year 2

Willy Icon.png Willy (Mail - 9+ HeartIconLarge.png)

data-sort-value="205">Gold.png205g
Red Plate.png
Red Plate Full of antioxidants. Red Cabbage.png Red Cabbage (1)Radish.png Radish (1) Energy.png 240
Health.png 108
Max Energy.png Max Energy (+50) Time Icon.png 3m 30s

Emily Icon.png Emily (Mail - 7+ HeartIconLarge.png)

data-sort-value="400">Gold.png400g
Super Meal.png
Super Meal It's a really energizing meal. Bok Choy.png Bok Choy (1)Cranberries.png Cranberries (1)Artichoke.png Artichoke (1) Energy.png 160
Health.png 72
Max Energy.png Max Energy (+40)Speed.png Speed (+1) Time Icon.png 3m 30s

Kent Icon.png Kent (Mail - 7+ HeartIconLarge.png)

data-sort-value="220">Gold.png220g
Tom Kha Soup.png
Tom Kha Soup These flavors are incredible! Coconut.png Coconut (1)Shrimp.png Shrimp (1)Common Mushroom.png Common Mushroom (1) Energy.png 175
Health.png 78
Farming.png Farming (+2)Max Energy.png Max Energy (+30) Time Icon.png 7m

Sandy Icon.png Sandy (Mail - 7+ HeartIconLarge.png)

data-sort-value="250">Gold.png250g

Infinite Energy

Energy requirement for tools can be removed by enchanting them. The Efficient enchantment causes no energy drain while the tool is being used.

It is also possible to obtain infinite energy for a whole day by using the Statue Of Blessings and obtaining Blessing of Energy. This blessing is given at random, so there is no guarantee you will get it for a specific day.

References

  1. See Farmer::updateCommon in the game code.
  2. See Farmer::Update in the game code.
  3. The effects of the first kiss in a day are handled in NPC::checkAction, specifically in if (!this.hasBeenKissedToday.Value).
  4. Energy amounts for the next day are calculated in Farmer::dayupdate, specifically starting at oldStamina = this.Stamina.
  5. The effects of the Spa/swimming are handled in Farmer::updateCommon, specifically in if (this.swimming). It Checks whether the player has not moved in 800ms and at least 100ms has passed and increases health and energy by 1.
  6. The effects of a multiplayer bed are handled in Farmer::Update, specifically in if (this.isInBed && Game1.IsMultiplayer && Game1.shouldTimePass(false)). It Checks whether at least 500ms has passed and increases health and energy by 1.

History

  • 1.3.27: Added energy regeneration while standing in bed for multiplayer. Removed exploit that allowed players to bypass "passing out" by clicking on the journal icon.
  • 1.4: All level-ups (including levels 5 and 10) now restore 100% energy.
  • 1.6: Added reference to Blessing of Energy.