mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 16:47:13 +01:00
Using a bedsheet on an occupied cryopod tucks the occupant in goodnight (#16157)
* cryopod tuck * only one tuck pls * ooough do it here
This commit is contained in:
@@ -157,6 +157,8 @@ GLOBAL_LIST_EMPTY(valid_cryopods)
|
||||
/// if false, plays announcement on cryo
|
||||
var/quiet = FALSE
|
||||
|
||||
/// Has the occupant been tucked in?
|
||||
var/tucked = FALSE
|
||||
|
||||
/obj/machinery/cryopod/quiet
|
||||
quiet = TRUE
|
||||
@@ -210,6 +212,7 @@ GLOBAL_LIST_EMPTY(valid_cryopods)
|
||||
icon_state = "cryopod-open"
|
||||
set_density(TRUE)
|
||||
name = initial(name)
|
||||
tucked = FALSE
|
||||
|
||||
/obj/machinery/cryopod/container_resist_act(mob/living/user)
|
||||
visible_message(span_notice("[occupant] emerges from [src]!"),
|
||||
@@ -459,6 +462,19 @@ GLOBAL_LIST_EMPTY(valid_cryopods)
|
||||
/obj/machinery/cryopod/blob_act()
|
||||
return // Sorta gamey, but we don't really want these to be destroyed.
|
||||
|
||||
/obj/machinery/cryopod/attackby(obj/item/weapon, mob/living/carbon/human/user, params)
|
||||
. = ..()
|
||||
if(istype(weapon, /obj/item/bedsheet))
|
||||
if(!occupant || !istype(occupant, /mob/living))
|
||||
return
|
||||
if(tucked)
|
||||
to_chat(user, span_warning("[occupant.name] already looks pretty comfortable!"))
|
||||
return
|
||||
to_chat(user, span_notice("You tuck [occupant.name] into their pod!"))
|
||||
qdel(weapon)
|
||||
user.add_mood_event("tucked", /datum/mood_event/tucked_in, occupant)
|
||||
tucked = TRUE
|
||||
|
||||
// Wake-up notifications
|
||||
|
||||
/obj/effect/mob_spawn/ghost_role
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/datum/mood_event/tucked_in
|
||||
description = "I feel better having tucked someone in for a good night's rest!"
|
||||
mood_change = 3
|
||||
timeout = 2 MINUTES
|
||||
|
||||
/datum/mood_event/tucked_in/add_effects(mob/tuckee)
|
||||
if(!tuckee)
|
||||
return
|
||||
description = "I feel better having tucked in [tuckee.name] for a good night's rest!"
|
||||
@@ -5294,6 +5294,7 @@
|
||||
#include "modular_skyrat\modules\cryosleep\code\cryopod.dm"
|
||||
#include "modular_skyrat\modules\cryosleep\code\job.dm"
|
||||
#include "modular_skyrat\modules\cryosleep\code\mind.dm"
|
||||
#include "modular_skyrat\modules\cryosleep\code\mood.dm"
|
||||
#include "modular_skyrat\modules\curatorbundle\Mushy.dm"
|
||||
#include "modular_skyrat\modules\curatorbundle\Ronin.dm"
|
||||
#include "modular_skyrat\modules\customization\__DEFINES\DNA.dm"
|
||||
|
||||
Reference in New Issue
Block a user