From aee2a48600d1a9ca4866c7452151bb31a2fcdd0d Mon Sep 17 00:00:00 2001 From: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Date: Fri, 31 Dec 2021 20:55:44 -0500 Subject: [PATCH] burning things moving over a bonfire sets the bonfire on fire (#63674) --- code/game/objects/structures/bonfire.dm | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/code/game/objects/structures/bonfire.dm b/code/game/objects/structures/bonfire.dm index 28bbc7aaa08..6bfb760817f 100644 --- a/code/game/objects/structures/bonfire.dm +++ b/code/game/objects/structures/bonfire.dm @@ -119,8 +119,21 @@ /obj/structure/bonfire/proc/on_entered(datum/source, atom/movable/entered) SIGNAL_HANDLER - if(burning & !grill) - bonfire_burn() + if(burning) + if(!grill) + bonfire_burn() + return + + //Not currently burning, let's see if we can ignite it. + if(isliving(entered)) + var/mob/living/burning_body = entered + if(burning_body.on_fire) + start_burning() + visible_message(span_notice("[entered] runs over [src], starting its fire!")) + + else if(entered.resistance_flags & ON_FIRE) + start_burning() + visible_message(span_notice("[entered]'s fire speads to [src], setting it ablaze!")) /obj/structure/bonfire/proc/bonfire_burn(delta_time = 2) var/turf/current_location = get_turf(src)