Files
wwdpublic/Content.Server/Traits/Assorted/NarcolepsySystem.cs
Mnemotechnican c56cbaeaed Better Narcolepsy (#967)
# Description
This reworks the narcolepsy system:
- Before you actually fall asleep, you have a chance to see a warning
popup and prepare for the nap.
- If you go to sleep normally, and spend more time sleeping than the
minimum time of a narcolepsy incident (10 seconds normally), your
narcolepsy timer will reset, allowing you to make sure you won't fall
asleep mid important work.
- Your narcolepsy timer no longer decreases while you are sleeping.
- However, if you do fall asleep for any reason while being close to a
natural narcolepsy incident (close enough for a warning to be shown - 25
seconds by default), a narcolepsy incident will happen immediately.
- When you wake up after sleeping enough to reset the narcolepsy timer,
a popup is shown.

<details><summary><h1>Media</h1></summary>
<p>


https://github.com/user-attachments/assets/600bb287-1919-4f55-9672-313b55189aaa


![image](https://github.com/user-attachments/assets/759b93f9-b1fc-4c4e-951c-a549e7019be7)

</p>
</details>

# Changelog
🆑
- add: Narcolepsy has been reworked. You can now know when you're about
to fall asleep, and can choose to go to sleep willingly to reset the
narcolepsy timer and avoid an incident.
2024-10-19 13:24:45 +07:00

4.6 KiB