From f7252158576cb06ed5deedfb85a097bac058b484 Mon Sep 17 00:00:00 2001 From: Segrain Date: Sun, 13 Oct 2013 03:43:06 +0300 Subject: [PATCH] Missing verbs. --- code/modules/mob/living/carbon/carbon.dm | 11 ++++++++- code/modules/mob/living/living.dm | 29 +++++++++++++++--------- 2 files changed, 28 insertions(+), 12 deletions(-) diff --git a/code/modules/mob/living/carbon/carbon.dm b/code/modules/mob/living/carbon/carbon.dm index 726d283c423..dbca1091c63 100644 --- a/code/modules/mob/living/carbon/carbon.dm +++ b/code/modules/mob/living/carbon/carbon.dm @@ -479,6 +479,15 @@ return method ? ">250" : "extremely weak and fast, patient's artery feels like a thread" // output for machines^ ^^^^^^^output for people^^^^^^^^^ +/mob/living/carbon/verb/mob_sleep() + set name = "Sleep" + set category = "IC" + + if(usr.sleeping) + usr << "\red You are already sleeping" + return + if(alert(src,"You sure you want to sleep for a while?","Sleep","Yes","No") == "Yes") + usr.sleeping = 20 //Short nap //Brain slug proc for voluntary removal of control. /mob/living/carbon/proc/release_control() @@ -552,4 +561,4 @@ else src << "You do not have enough chemicals stored to reproduce." - return + return \ No newline at end of file diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 8305766568a..ddfd7d16063 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -248,16 +248,16 @@ /mob/living/proc/restore_all_organs() return - - + + /mob/living/proc/revive() rejuvenate() buckled = initial(src.buckled) if(iscarbon(src)) var/mob/living/carbon/C = src C.handcuffed = initial(C.handcuffed) - + /mob/living/proc/rejuvenate() // shut down various types of badness @@ -268,14 +268,14 @@ SetParalysis(0) SetStunned(0) SetWeakened(0) - + // shut down ongoing problems radiation = 0 nutrition = 400 bodytemperature = T20C sdisabilities = 0 disabilities = 0 - + // fix blindness and deafness blinded = 0 eye_blind = 0 @@ -284,27 +284,27 @@ ear_deaf = 0 ear_damage = 0 heal_overall_damage(getBruteLoss(), getFireLoss()) - + // restore all of a human's blood if(ishuman(src)) var/mob/living/carbon/human/human_mob = src human_mob.restore_blood() - + // fix all of our organs restore_all_organs() - + // remove the character from the list of the dead if(stat == 2) dead_mob_list -= src living_mob_list += src tod = null - + // restore us to conciousness stat = CONSCIOUS - + // make the icons look correct regenerate_icons() - + return /mob/living/proc/UpdateDamageIcon() @@ -661,3 +661,10 @@ CM.legcuffed.loc = usr.loc CM.legcuffed = null CM.update_inv_legcuffed() + +/mob/living/verb/lay_down() + set name = "Rest" + set category = "IC" + + resting = !resting + src << "\blue You are now [resting ? "resting" : "getting up"]" \ No newline at end of file