From 35e4ea51580b9196800bee740e912b37bb14f277 Mon Sep 17 00:00:00 2001 From: MLGTASTICa <61350382+MLGTASTICa@users.noreply.github.com> Date: Fri, 12 Feb 2021 02:07:29 +0200 Subject: [PATCH] Makes Quad-Sec only work inside /area/security (#3223) * Update alcohol_reagents.dm * Update alcohol_reagents.dm * Update alcohol_reagents.dm * Update code/modules/reagents/chemistry/reagents/alcohol_reagents.dm Co-authored-by: KathrinBailey <53862927+KathrinBailey@users.noreply.github.com> Co-authored-by: MLGTASTICa Co-authored-by: KathrinBailey <53862927+KathrinBailey@users.noreply.github.com> --- .../reagents/chemistry/reagents/alcohol_reagents.dm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm index 8056540ccd6..b37ada643e3 100644 --- a/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm +++ b/code/modules/reagents/chemistry/reagents/alcohol_reagents.dm @@ -1617,9 +1617,11 @@ All effects don't start immediately, but rather get worse over time; the rate is //Securidrink in line with the Screwdriver for engineers or Nothing for mimes var/obj/item/organ/liver/liver = M.getorganslot(ORGAN_SLOT_LIVER) if(liver && HAS_TRAIT(liver, TRAIT_LAW_ENFORCEMENT_METABOLISM)) - M.heal_bodypart_damage(brute = 1, burn = 1) - M.adjustBruteLoss(-2,0) - . = 1 + if(istype(get_area(M), /area/security)) // Skyrat edit , it checks for area now - Start + M.heal_bodypart_damage(brute = 1, burn = 1) + M.adjustBruteLoss(-2,0) + . = 1 + return ..() // SKYRAT EDIT: End - This line and the above few have only indentation changes. return ..() /datum/reagent/consumable/ethanol/quintuple_sec @@ -2396,4 +2398,3 @@ All effects don't start immediately, but rather get worse over time; the rate is glass_icon_state = "godmother" glass_name = "Godmother" glass_desc = "A lovely fresh smelling cocktail, a true Sicilian delight." -