From 6ef2e2fbf6bda2abe90dcde1ba16c7452caab1e1 Mon Sep 17 00:00:00 2001 From: Wallem <66052067+Wallemations@users.noreply.github.com> Date: Tue, 7 Jun 2022 20:38:49 -0400 Subject: [PATCH] Lets people light cigarettes in lava. (#67587) * god what a badass * what a clumsy guy * melbert changes --- code/game/turfs/open/lava.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/turfs/open/lava.dm b/code/game/turfs/open/lava.dm index 4d9f56a4e31..7d4312fd818 100644 --- a/code/game/turfs/open/lava.dm +++ b/code/game/turfs/open/lava.dm @@ -118,6 +118,20 @@ else to_chat(user, span_warning("You need one rod to build a heatproof lattice.")) return + // Light a cigarette in the lava + if(istype(C, /obj/item/clothing/mask/cigarette)) + var/obj/item/clothing/mask/cigarette/ciggie = C + if(ciggie.lit) + to_chat(user, span_warning("The [ciggie.name] is already lit!")) + return TRUE + var/clumsy_modifier = HAS_TRAIT(user, TRAIT_CLUMSY) ? 2 : 1 + if(prob(25 * clumsy_modifier )) + ciggie.light(span_warning("[user] expertly dips \the [ciggie.name] into [src], along with the rest of [user.p_their()] arm. What a dumbass.")) + var/obj/item/bodypart/affecting = user.get_active_hand() + affecting?.receive_damage(burn = 90) + else + ciggie.light(span_rose("[user] expertly dips \the [ciggie.name] into [src], lighting it with the scorching heat of the planet. Witnessing such a feat is almost enough to make you cry.")) + return TRUE /turf/open/lava/proc/is_safe() //if anything matching this typecache is found in the lava, we don't burn things