Skip to content

Commit

Permalink
Changes cryopod wakeup behavior (#2762)
Browse files Browse the repository at this point in the history
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may
not be viewable. -->
<!-- You can view Contributing.MD for a detailed description of the pull
request process. -->

## About The Pull Request
See title.

Removes most of the adverse affects from cryo, I didn't end up being
happy with it.
Changes how the message on wake-up is handled and displayed
<!-- Describe The Pull Request. Please be sure every change is
documented or this can delay review and even discourage maintainers from
merging your PR! -->


## Changelog

:cl:
balance: Cryo wakeup doesn't make you puke anymore
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
thgvr authored Feb 28, 2024
1 parent 552fcd8 commit 6dfbf09
Showing 1 changed file with 9 additions and 20 deletions.
29 changes: 9 additions & 20 deletions code/game/machinery/cryopod.dm
Original file line number Diff line number Diff line change
Expand Up @@ -432,23 +432,14 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/cryopod/retro, 17)
/obj/machinery/cryopod/apply_effects_to_mob(mob/living/carbon/sleepyhead)
//it always sucks a little to get up
sleepyhead.set_nutrition(200)
sleepyhead.SetSleeping(60) //if you read this comment and feel like shitting together something to adjust elzu and IPC charge on wakeup, be my guest.
//but it can be worse.
if(prob(90))
sleepyhead.SetSleeping(60)

var/wakeupmessage = "The cryopod shudders as the pneumatic seals separating you and the waking world let out a hiss."
if(prob(60))
wakeupmessage += "A sickly feeling along with the pangs of hunger greet you upon your awakening."
sleepyhead.set_nutrition(100)
sleepyhead.apply_effect(rand(3,10), EFFECT_DROWSY)
if(prob(75))
sleepyhead.blur_eyes(rand(3, 6))
//so much worse
if(prob(66))
sleepyhead.adjust_disgust(rand(25,35))
if(prob(33))
sleepyhead.adjust_disgust(rand(20,30))
if(prob(16))
sleepyhead.adjust_disgust(rand(10, 17))
//maybe you should've bought high passage.
if(prob(30))
sleepyhead.apply_damage_type(15, BURN)
to_chat(sleepyhead, "<span class='userdanger'>The symptoms of cryosleep set in as you awaken...")
to_chat(sleepyhead, span_danger(examine_block(wakeupmessage)))

/obj/machinery/cryopod/syndicate
icon_state = "sleeper_s-open"
Expand All @@ -462,16 +453,14 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/computer/cryopod/retro, 17)
/obj/machinery/cryopod/poor/apply_effects_to_mob(mob/living/carbon/sleepyhead)
sleepyhead.set_nutrition(200)
sleepyhead.SetSleeping(80)
if(prob(90))
if(prob(90)) //suffer
sleepyhead.apply_effect(rand(5,15), EFFECT_DROWSY)
if(prob(75))
sleepyhead.blur_eyes(rand(6, 10))
if(prob(66))
sleepyhead.adjust_disgust(rand(35, 45)) //rand
sleepyhead.adjust_disgust(rand(35, 45))
if(prob(40))
sleepyhead.adjust_disgust(rand(15, 25))
if(prob(20))
sleepyhead.adjust_disgust(rand(5,15))
if(prob(30))
sleepyhead.apply_damage_type(30, BURN)
to_chat(sleepyhead, "<span class='userdanger'>The symptoms of a horrid cryosleep set in as you awaken...")

0 comments on commit 6dfbf09

Please sign in to comment.