From 75088e9b36e6b194e1a653cb4f5b9edb2e3ca5e0 Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Fri, 16 Mar 2018 22:19:44 +0200 Subject: [PATCH] Merge pull request #36425 from Shadowlight213/donutsec Sec officers always like donuts --- .../modules/food_and_drinks/food/snacks_pastry.dm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/code/modules/food_and_drinks/food/snacks_pastry.dm b/code/modules/food_and_drinks/food/snacks_pastry.dm index 6bc5edf096..01105cf6d3 100644 --- a/code/modules/food_and_drinks/food/snacks_pastry.dm +++ b/code/modules/food_and_drinks/food/snacks_pastry.dm @@ -23,6 +23,21 @@ bonus_reagents = list("sprinkles" = 2, "sugar" = 1) filling_color = "#FF69B4" + +/obj/item/reagent_containers/food/snacks/donut/checkLiked(fraction, mob/M) //Sec officers always love donuts + if(last_check_time + 50 < world.time) + if(ishuman(M)) + var/mob/living/carbon/human/H = M + if(H.mind && H.mind.assigned_role == "Security Officer" && !H.has_trait(TRAIT_AGEUSIA)) + to_chat(H,"I love this taste!") + H.adjust_disgust(-5 + -2.5 * fraction) + GET_COMPONENT_FROM(mood, /datum/component/mood, H) + if(mood) + mood.add_event("fav_food", /datum/mood_event/favorite_food) + last_check_time = world.time + return + ..() + /obj/item/reagent_containers/food/snacks/donut/chaos name = "chaos donut" desc = "Like life, it never quite tastes the same."