Merge pull request #6372 from Citadel-Station-13/upstream-merge-37117

[MIRROR] Removes some duplicated code
This commit is contained in:
LetterJay
2018-04-14 07:45:15 -05:00
committed by GitHub
@@ -48,20 +48,7 @@
for(var/obj/item/stack/ore/O in contents)
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 = ChangeTurf(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 ..()