Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting tiredness #33

Merged
merged 2 commits into from
Aug 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/carbon_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@
var/stam_paralyzed = FALSE

var/domhand = 0
var/tiredness = 0
var/tiredness = 45 // we start a little tired
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/life.dm
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
to_chat(src, span_warning("I'll fall asleep soon..."))
fallingas++
if(fallingas > 15)
tiredness = tiredness - 45 // Sleeping on a bed gives you about 5.5 hours
Sleeping(300)
else
rogstam_add(buckled.sleepy * 10)
Expand All @@ -75,12 +76,13 @@
to_chat(src, span_warning("I'll fall asleep soon, although a bed would be more comfortable..."))
fallingas++
if(fallingas > 25)
tiredness = tiredness - 25 // Sleeping without gives you about 2.5
Sleeping(300)
else
rogstam_add(10)
else if(fallingas)
fallingas = 0
tiredness = min(tiredness + 1, 100)
tiredness = min(tiredness + 0.33, 100)

handle_brain_damage()

Expand Down
Loading