From 2dbd3d4e66f212eaec4c85f0dd3222565612b304 Mon Sep 17 00:00:00 2001 From: Ansari Date: Tue, 10 Oct 2017 14:18:07 +0800 Subject: [PATCH] Let any item smash windows instead of just weapons. --- code/game/objects/structures/window.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/structures/window.dm b/code/game/objects/structures/window.dm index 126dd6e3a38..7d60485dac5 100644 --- a/code/game/objects/structures/window.dm +++ b/code/game/objects/structures/window.dm @@ -179,7 +179,7 @@ var/global/wcCommon = pick(list("#379963", "#0d8395", "#58b5c3", "#49e46e", "#8f attack_generic(user, rand(10, 15)) -/obj/structure/window/attackby(obj/item/weapon/W as obj, mob/living/user as mob, params) +/obj/structure/window/attackby(obj/item/W as obj, mob/living/user as mob, params) if(!istype(W)) return//I really wish I did not need this if(istype(W, /obj/item/weapon/grab) && get_dist(src,user)<2) var/obj/item/weapon/grab/G = W