Removes some duplicated code

This commit is contained in:
ninjanomnom
2018-04-11 15:00:33 -05:00
committed by KorPhaeron
parent bba91375ac
commit bc6eeedc06
@@ -47,19 +47,6 @@
O.attackby(W,user)
return
if(istype(W, /obj/item/stack/tile))
var/obj/item/stack/tile/Z = W
if(!Z.use(1))
return
var/turf/open/floor/T = PlaceOnTop(Z.turf_type)
if(istype(Z, /obj/item/stack/tile/light)) //TODO: get rid of this ugly check somehow
var/obj/item/stack/tile/light/L = Z
var/turf/open/floor/light/F = T
F.state = L.state
playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
return
/turf/open/floor/plating/asteroid/singularity_act()
if(is_planet_level(z))
return ..()