From 8623fbec739f57d3f4ddbcab67940d7a14e89827 Mon Sep 17 00:00:00 2001 From: Birdtalon Date: Thu, 8 Feb 2018 14:45:22 +0000 Subject: [PATCH] adds condition to prevent chugging of unopened containers --- code/modules/food_and_drinks/drinks/drinks.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/food_and_drinks/drinks/drinks.dm b/code/modules/food_and_drinks/drinks/drinks.dm index 0b5b2171f86..f80a58f7fba 100644 --- a/code/modules/food_and_drinks/drinks/drinks.dm +++ b/code/modules/food_and_drinks/drinks/drinks.dm @@ -43,6 +43,9 @@ /obj/item/weapon/reagent_containers/food/drinks/MouseDrop(atom/over_object) //CHUG! CHUG! CHUG! var/mob/living/carbon/chugger = over_object + if (!(flags & OPENCONTAINER)) + to_chat(chugger, "You need to open [src] first!") + return if(istype(chugger) && loc == chugger && src == chugger.get_active_hand() && reagents.total_volume) chugger.visible_message("[chugger] raises the [src] to their mouth and starts [pick("chugging","gulping")] it down like [pick("a savage","a mad beast","it's going out of style","there's no tomorrow")]!", "You start chugging \the [src].", "You hear what sounds like gulping.") while(do_mob(chugger, chugger, 40)) //Between the default time for do_mob and the time it takes for a vampire to suck blood.