Let any item smash windows instead of just weapons.

This commit is contained in:
Ansari
2017-10-10 14:18:07 +08:00
parent 179477ed07
commit 2dbd3d4e66
+1 -1
View File
@@ -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