Sleep: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(→‎Lying down: Updated based on the latest code)
m (Fixed a typo: incerases -> increases)
 
(16 intermediate revisions by 8 users not shown)
Line 10: Line 10:
To successfully sleep you'll need to reach a sleepiness above zero. That variable is checked when lying down, and it takes all these factors into consideration:
To successfully sleep you'll need to reach a sleepiness above zero. That variable is checked when lying down, and it takes all these factors into consideration:
;Penalties
;Penalties
* Suffering from sleeping pill dependance reduces it by 3
* Suffering from sleeping pill dependence reduces it by 4.
* Having the [[traits#Insomniac|insomniac]] trait reduces it by 8
* Having the [[Insomniac]] trait reduces it by 12.
* Being under stimulants will reduce it by double the current stim level
* Being under stimulants will reduce it by double of current stim level for [[insomniac]] and the value itself for everyone else.
* If your level of [[Hidden_stats#Fatigue|fatigue]] is below {{igs|Tired|c_yellow}} (192 fatigue), it will be decreased by 1/4 of the value below 192
* Having [[Hidden stats#Fatigue|fatigue]] below {{igs|Tired|c_yellow}} (192 fatigue), reduces it by 1/4 of the value below 192.
;Bonus
;Bonuses
* Being over a [[bed (construction)|bed]] increases it by 5 points
* Having the [[Accomplished Sleeper]] trait increases it by 24.
* Being over a [[makeshift bed]], [[seat]] or an extended [[cot]] will increase it by 4 points
* Having the [[Practiced Sleeper]] mutation increases it by 40.
* Being over an extended [[rollmat]] increases it by 3 points
* Being over a [[bed (construction)|bed]] increases it by 5.
* Being over a [[floor]] increases it by 1 point
* Being over a [[bed (vehicle)|vehicle bed]], [[makeshift bed]], [[cot]] or [[sofa]] increases it by 4.
* Being over a [[seat|vehicle seat]], extended [[rollmat]], [[fur rollmat]], [[arm chair]] or [[improvised shelter]] increases it by 3.
* Being over a [[straw bed]], [[hay]] or [[tatami]] increases it by 2.
* Being over a [[chair]], [[bench]], [[floor]], [[waxed floor]], [[red carpet]], [[yellow carpet]], [[green carpet]] or [[purple carpet]] increases it by 1.
* Being in any other kind of terrain will decrease it by the current movement cost of the [[terrain types|terrain type]].
* Being in any other kind of terrain will decrease it by the current movement cost of the [[terrain types|terrain type]].
* If your level of fatigue is above {{igs|Tired|c_yellow}} (192 fatigue), it will be increased by 1/16 of the value above 192.
* If your level of fatigue is above {{igs|Tired|c_yellow}} (192 fatigue), it will be increased by 1/16 of the value above 192.
* [[traits#Easy_sleeper|Easy sleeper]] trait increases it by 8.
* [[Chloromorphosis]] mutation increases it by 10 when on [[dirt]], [[pit]], [[mound of dirt]], and [[shallow pit]] or by 5 [[grass]], as long as there is no furniture on that tile, but can't sleep anywhere else.
* [[List_of_mutations#Chloromorph|Chloromorph]] mutation increases it by 10 when on dirt, a dirt mound or in a pit or by 5 on ash or grass, as long as there is no furniture on that tile.
* [[Spider]] threshold (also called Arachnid), [[Web Spinner]] or [[Web Weaver]] mutations increases it by 10 when in web of at least 10 thickness, but can't sleep anywhere else.
* [[Web Walker]] mutation increases it by 3 when in web of at least 3 thickness.
* [[Shell]] mutation increases it by 4 when in shell.


Sleepiness will also be increased or decreased randomly by a small amount (+/-8) each time this check is done.
Sleepiness will also be increased or decreased randomly by a small amount (+/-8) each time this check is done.
You can't sleep under the effects of [[Low-grade methamphetamine|meth]], having to wait until it wears off completely.


If sleepiness is above zero you'll start sleeping (''"You fall asleep."''), otherwise you'll stand up again (''"You try to sleep, but can't...'').
If sleepiness is above zero you'll start sleeping (''"You fall asleep."''), otherwise you'll stand up again (''"You try to sleep, but can't...'').
Line 31: Line 38:
* Furniture:
* Furniture:
** [[Bed (construction)|Bed]] (1000)
** [[Bed (construction)|Bed]] (1000)
** [[Makeshift bed]], [[armchair]], [[sofa]] (all 500)
** [[Makeshift bed]], [[arm chair]], [[sofa]] (all 500)
** [[Bed (vehicle)|Vehicle bed]] (300)
** [[Bed (vehicle)|Vehicle bed]] (300)
** Vehicle bed & seat (250)
** Vehicle bed & seat (250)
Line 39: Line 46:
** Mutations that grant thick fur ensure "furniture heat" doesn't drop below 0
** Mutations that grant thick fur ensure "furniture heat" doesn't drop below 0
** [[Cot]], [[improvised shelter]], [[tatami]] (all -500)
** [[Cot]], [[improvised shelter]], [[tatami]] (all -500)
** [[Rollmat]] (-1000)  
** [[Rollmat]] (-1000)
** [[Chair]], [[bench]] (-1500)
** Everything else (-2000)
** Everything else (-2000)
* Any torso and leg clothing with volume > 0.25 liters lying on the tile or located in vehicle cargo will help with heating: 60 * warmth * volume / 2.5 liters (will heat up all body, not just relevant parts)
* Any torso and leg clothing with volume > 0.25 liters lying on the tile or located in vehicle cargo will help with heating: 60 * warmth * volume / 2.5 liters (will heat up all body, not just relevant parts)
Line 53: Line 61:
The amount of healing you get depends on a few factors:
The amount of healing you get depends on a few factors:
* Your current [[Hidden_stats#Health|health]].
* Your current [[Hidden_stats#Health|health]].
* You heal quick with [[Fast Healer]] or [[Rapid Metabolism]] mutations.
* [[Fast Healer]], [[Very Fast Healer]] and [[Regeneration]] increase the speed of healing.
* You heal quicker with the [[Very Fast Healer]] mutation.
* [[Rapid Metabolism]] increases speed of healing.
* You heal very quick with the [[Regeneration]] mutation.
* [[Slow Healer]], [[Poor Healer]], [[Imperceptive Healer]] lower speed of healing.
* If you are [[Hibernation|hibernating]] you heal extremely slowly.
* If you have an HP-reducing mutation like [[Flimsy]], [[Frail]], or [[Fragile]] you heal slower, but only because your relative HP is lower. 10% of 80 is less than 10% of 100, so you gain less total HP in a given time.
* If you have a HP reducing mutation like [[Flimsy]], [[Frail]], or [[Fragile]] you heal slower. But only because your relative HP is lower.
* [[Broken limb|Broken limbs]] do not heal until mended.
* [[Broken limb]]s do not heal until mended.


You'll wake up when:
You'll wake up when:
* Your fatigue is between 0 and -20 (''"Fully rested."'').
* Your fatigue is between 0 and -20 (''"Fully rested."'').
* There's a light source (such as the sun) and you've rested for a while (''"The light wakes you up."'').
* There's a light source (such as the sun) and you've rested for a while (''"It's too bright to sleep."'').
* Your [[body temperature]] is low/high (''"The cold/heat wakes you up."'').
* Your [[body temperature]] is low/high (''"It's too cold/hot to sleep."'').
* You cough - 1/10 chance if it's regular coughing (like from [[Low immunity diseases|common cold]]), 1/3 if it can harm you (like from heavy [[smoke]])
* You cough - 1/10 chance if it's regular coughing (like from [[Low immunity diseases|common cold]]), 1/3 if it can harm you (like from heavy [[smoke]])
* You hear a sound (sound volume > sound distance to you). Effective volume is lowered by 3d15 if you have [[Heavy Sleeper]].
* You hear a sound (sound volume > sound distance to you). Effective volume is lowered by 3d15 if you have [[Heavy Sleeper]].
* Your alarm beeps. Alarm is equivalent to sound of volume 12 (20 if from a bionic) going off at your location. If that doesn't wake you up, alarm will keep repeating every 10 minutes until you wake up.
* Your alarm beeps. Alarm is equivalent to sound of volume 12 (20 if from the [[Internal Chronometer]] bionic) going off at your location. If that doesn't wake you up, alarm will keep repeating every 10 minutes until you wake up.
* Your pain counter increases.
* Your pain counter increases.
** This probably means player is being attacked but it can also be [[Acidic Discharge]] or [[Electrical Discharge]].
** [[Deadened]] mutation cancels this - you can pretty much be eaten by a zombie if asleep. Sleep responsibly!


{{Diseases}}
{{Effects}}
[[Category:Diseases]]
[[Category:Effects]]
[[Category:Game Mechanics]]
[[Category:Game Mechanics]]

Latest revision as of 06:53, 28 July 2023

Sleeping restores fatigue and heals your wounds, so it's something you might want to do regularly.

Being under the effect of stimulants (coffee, Adderall, cocaine, etc) will make sleeping very difficult. You can consume those kind of items to purposely delay the need of sleeping.

Consuming Ambien, Cough syrup or Poppy sleep will increase your fatigue, and therefore help you fall asleep faster.

Lying down

The process of lying down in order to sleep.

To successfully sleep you'll need to reach a sleepiness above zero. That variable is checked when lying down, and it takes all these factors into consideration:

Penalties
  • Suffering from sleeping pill dependence reduces it by 4.
  • Having the Insomniac trait reduces it by 12.
  • Being under stimulants will reduce it by double of current stim level for insomniac and the value itself for everyone else.
  • Having fatigue below Tired (192 fatigue), reduces it by 1/4 of the value below 192.
Bonuses

Sleepiness will also be increased or decreased randomly by a small amount (+/-8) each time this check is done.

You can't sleep under the effects of meth, having to wait until it wears off completely.

If sleepiness is above zero you'll start sleeping ("You fall asleep."), otherwise you'll stand up again ("You try to sleep, but can't...).

In addition to being sufficiently tired, you also need a comfortable enough temperature. The more bed-like your spot is, the more heat will be provided by it. This bonus heat will be used intelligently - it won't heat you above optimal temperature. It can't be used to cool down if it ends up negative.

  • Furniture:
  • Any torso and leg clothing with volume > 0.25 liters lying on the tile or located in vehicle cargo will help with heating: 60 * warmth * volume / 2.5 liters (will heat up all body, not just relevant parts)
  • Mutations that give you fur will provide both the regular "clothing" warmth (regardless of if you want it or not) and this special sleep warmth that can only help

To compare those temperature values with clothing "warmth" values, divide by 60 (when it's too cold) or 30 (when too hot). When in doubt, drop any torso or leg clothing with volume >9.

Cooling down is harder. First off (obviously) remove warm clothing. Second, don't lie in the sun: +1000 and +500 for sunny and clear weather respectively. If it still isn't enough, skip few meals before going to sleep (-hunger/6).

Sleeping

Reduces fatigue and heals all body parts. Hunger and thirst increase more slowly when sleeping. Your sight range will be reduced to zero (simulating closed eyes).

The amount of healing you get depends on a few factors:

You'll wake up when:

  • Your fatigue is between 0 and -20 ("Fully rested.").
  • There's a light source (such as the sun) and you've rested for a while ("It's too bright to sleep.").
  • Your body temperature is low/high ("It's too cold/hot to sleep.").
  • You cough - 1/10 chance if it's regular coughing (like from common cold), 1/3 if it can harm you (like from heavy smoke)
  • You hear a sound (sound volume > sound distance to you). Effective volume is lowered by 3d15 if you have Heavy Sleeper.
  • Your alarm beeps. Alarm is equivalent to sound of volume 12 (20 if from the Internal Chronometer bionic) going off at your location. If that doesn't wake you up, alarm will keep repeating every 10 minutes until you wake up.
  • Your pain counter increases.


Various status effects
Weather Body temperature problems · Glare · Wet
Mobility Bear trap · Crushed · Grabbed · In pit · Unstable footing · Winded
Field Effects On Fire · Sap-coated · Slimed · Smoke · Relaxation gas · Tear gas · Webbed
Attack Effects Bleeding · Blind · Boomered · Corroding · Deaf · Darkness · Dazed · Downed · Insect Parasite · Pain · Poison · Ratting · Stung · Stunned · Spores · Zapped
Drug Effects Addiction · Alcohol Intoxication · Datura · General high · Nicotine · Methamphetamine · Shakes
Wound Treatment Bandaged · Disinfected
Painkillers Minor Painkiller · Moderate Painkiller · Heavy Painkillers/Opiates · Slow-Release Painkiller
Pharmaceuticals Antibiotic · Adrenaline Spike · Contact lenses · Diazepam · Flu medicine · Flu shot · Heartburn medicine · Iodine Tablets · Prozac · Prussian blue · Royal jelly · RX12 Healing Stimulant · RX11 Stimulant · Stimulants and Depressants · Xanax
Vitamins Anemia · B12 deficiency · Gross food · Hypervitaminosis · Hypocalcemia · Night blindness · Toxin Buildup · Scurvy
Infectious Diseases Infection · Low immunity diseases · Food Parasites · Tetanus
Medical Conditions Asthma · Broken limb · Blech · Plant Blech · Hallucinating · Nausea · Radiation · Sleep deprivation
Medical Tags Assisted · Check-up · Narcosis · Under operation
Eldritch Amigara obsession · Evil · Fear · Netherworld attention · Teleglow
Other Effects Earphones · EMP · Glowy LED · Happiness · Laser targeted · Lit up · Playing instrument · Poor sight · Raiding animal · Sleep