From faf05677749599a0bb740f86092fc25069fb234b Mon Sep 17 00:00:00 2001 From: FalseIncarnate Date: Wed, 19 Apr 2017 15:42:14 -0400 Subject: [PATCH] Allows scythes to mass-clear glowshrooms Glowshrooms are no longer immune to the reaper's touch, and will be shredded by scythes just like vines. --- code/game/objects/effects/glowshroom.dm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/game/objects/effects/glowshroom.dm b/code/game/objects/effects/glowshroom.dm index b7967ee02cb..c925982cfe0 100644 --- a/code/game/objects/effects/glowshroom.dm +++ b/code/game/objects/effects/glowshroom.dm @@ -153,8 +153,16 @@ /obj/structure/glowshroom/attackby(obj/item/I, mob/user) ..() - if(I.damtype != STAMINA) - endurance -= I.force + var/force = I.force + if(istype(I, /obj/item/weapon/scythe)) + var/obj/item/weapon/scythe/S = I + if(S.extend) //so folded telescythes won't get damage boosts / insta-clears (they instead will instead be treated like non-scythes) + force = force * 4 + for(var/obj/structure/glowshroom/G in range(1,src)) + G.endurance -= force + G.CheckEndurance() + else if(I.damtype != STAMINA) + endurance -= force CheckEndurance() /obj/structure/glowshroom/ex_act(severity)