From 53967cc93bcd271fdf7063e02ed10f6ce1ff3c36 Mon Sep 17 00:00:00 2001 From: Miniature Date: Mon, 26 Dec 2011 00:33:51 +1030 Subject: [PATCH] Made flamethrowers also work when you click on blob, so you don't have to hunt moving pixels --- code/game/gamemodes/blob/theblob.dm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/game/gamemodes/blob/theblob.dm b/code/game/gamemodes/blob/theblob.dm index 94bbc4a31df..fe317302ee4 100644 --- a/code/game/gamemodes/blob/theblob.dm +++ b/code/game/gamemodes/blob/theblob.dm @@ -40,6 +40,13 @@ processing_objects.Remove(src) ..() + //copy pasta from turf code, so flamers work on blob without having to pixelhunt + //might need an else for the ..() + DblClick() + if((usr.hand && istype(usr.l_hand, /obj/item/weapon/flamethrower)) || (!usr.hand && istype(usr.r_hand, /obj/item/weapon/flamethrower))) + var/turf/location = get_turf_loc(src) + location.DblClick() + return ..() CanPass(atom/movable/mover, turf/target, height=0, air_group=0) if((air_group && blobtype != "Shield") || (height==0)) return 1