Commit Graph

5 Commits

Author SHA1 Message Date
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
DrSmugleaf
9cc8a7fc81 Remove 700 usages of Component.Owner (#21100) 2023-10-20 15:31:13 +02:00
Vordenburg
7582474f1a Lint more const string prototypes (#18922) 2023-08-13 20:26:59 -04:00
Scribbles0
27263892ef Narcolepsy Treatment (#13427)
* ResetNarcolepsy.cs and NarcolepsySystem.cs changes

* fix multiple narcolepsy incidents

* comment

* Update Content.Server/Chemistry/ReagentEffects/ResetNarcolepsy.cs

Co-authored-by: 0x6273 <0x40@keemail.me>

* try to fix tests

Co-authored-by: 0x6273 <0x40@keemail.me>
2023-01-11 02:14:16 -06:00
Moony
0c46f99004 Blindness, Narcolepsy, Pacifism, and uncontrollable sneezing (#11489)
* start work

* blindness actually works now

* doc

* doc you too.

* i desire to sneeze my lungs out

* no punchie

* s

Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
2022-09-29 18:23:12 -05:00