Skip to content

Commit

Permalink
Merge pull request #33 from skeyuui/tired
Browse files Browse the repository at this point in the history
Adjusting tiredness
  • Loading branch information
russ-money authored Aug 25, 2024
2 parents b2b9e01 + 35450e3 commit 2e1ba01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 2e1ba01

Please sign in to comment.