From 1facb7a397777aa35de58974786f19209167a224 Mon Sep 17 00:00:00 2001 From: Fox-McCloud Date: Thu, 5 May 2016 19:50:29 -0400 Subject: [PATCH] love and hugs --- code/game/objects/items/toys.dm | 3 ++ code/modules/reagents/newchem/other.dm | 46 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) diff --git a/code/game/objects/items/toys.dm b/code/game/objects/items/toys.dm index 6a863bcc60f..25ade73eb38 100644 --- a/code/game/objects/items/toys.dm +++ b/code/game/objects/items/toys.dm @@ -949,6 +949,9 @@ obj/item/toy/cards/deck/syndicate/black /obj/item/toy/plushie/attack(mob/M as mob, mob/user as mob) playsound(loc, poof_sound, 20, 1) // Play the whoosh sound in local area + if(iscarbon(M)) + if(prob(10)) + M.reagents.add_reagent("hugs", 10) return ..() /obj/item/toy/plushie/attack_self(mob/user as mob) diff --git a/code/modules/reagents/newchem/other.dm b/code/modules/reagents/newchem/other.dm index c26d8bbe983..7ef7dff6ff5 100644 --- a/code/modules/reagents/newchem/other.dm +++ b/code/modules/reagents/newchem/other.dm @@ -351,6 +351,52 @@ datum/reagent/fartonium/on_mob_life(var/mob/living/M as mob) required_reagents = list("sodium" = 1, "hydrogen" = 1, "oxygen" = 1) result_amount = 3 +/datum/reagent/hugs + name = "Pure hugs" + id = "hugs" + description = "Hugs, in liquid form. Yes, the concept of a hug. As a liquid. This makes sense in the future." + reagent_state = LIQUID + color = "#FF97B9" + +/datum/reagent/love + name = "Pure love" + id = "love" + description = "What is this emotion you humans call \"love?\" Oh, it's this? This is it? Huh, well okay then, thanks." + reagent_state = LIQUID + color = "#FF83A5" + +/datum/reagent/love/reaction_mob(var/mob/living/M, var/method=TOUCH, var/volume) + to_chat(M, "You feel loved!") + +/datum/reagent/love/on_mob_life(var/mob/living/M as mob) + if(!M) M = holder.my_atom + + if(M.a_intent == I_HARM) + M.a_intent = I_HELP + + if(prob(8)) + var/lovely_phrase = pick("appreciated", "loved", "pretty good", "really nice", "pretty happy with yourself, even though things haven't always gone as well as they could") + to_chat(M, "You feel [lovely_phrase].") + + else if(!M.restrained()) + for(var/mob/living/carbon/C in orange(1, M)) + if(C) + if(C == M) + continue + if(!C.stat) + M.visible_message("[M] gives [C] a [pick("hug","warm embrace")].") + playsound(get_turf(M), 'sound/weapons/thudswoosh.ogg', 50, 1, -1) + break + ..() + +/datum/chemical_reaction/love + name = "pure love" + id = "love" + result = "love" + required_reagents = list("hugs" = 1, "chocolate" = 1) + result_amount = 2 + mix_message = "The substance gives off a lovely scent!" + ///Alchemical Reagents datum/reagent/eyenewt