Files
Bubberstation/code/game/objects/structures.dm
Nerd Lord f458c2cead The blob eats nondense things in all cases.
Probably fixes one or two bugs in the process.
2015-11-20 21:03:43 -05:00

34 lines
671 B
Plaintext

/obj/structure
icon = 'icons/obj/structures.dmi'
pressure_resistance = 8
/obj/structure/New()
..()
if(smooth)
smooth_icon(src)
smooth_icon_neighbors(src)
icon_state = ""
if(ticker)
cameranet.updateVisibility(src)
/obj/structure/blob_act()
if(!density)
qdel(src)
if(prob(50))
qdel(src)
/obj/structure/Destroy()
if(ticker)
cameranet.updateVisibility(src)
if(opacity)
UpdateAffectingLights()
if(smooth)
smooth_icon_neighbors(src)
return ..()
/obj/structure/mech_melee_attack(obj/mecha/M)
if(M.damtype == "brute")
visible_message("<span class='danger'>[M.name] has hit [src].</span>")
return 1
return 0