Makes mechs destroy tables/rack on movement, also make racks punchable my combat mechs.

Also re-did the ex_act for tables so it contains all 3 severities.
This commit is contained in:
Lzimann
2016-02-03 17:20:40 -02:00
parent aa99f7155f
commit 2103299326
2 changed files with 17 additions and 4 deletions
+15 -3
View File
@@ -45,9 +45,17 @@
/obj/structure/table/ex_act(severity, target)
..()
if(severity == 3)
if(prob(25))
table_destroy(1)
switch(severity)
if(1)
qdel(src)
if(2)
if(prob(50)
table_destroy(1)
else
qdel(src)
if(3)
if(prob(25))
table_destroy(1)
/obj/structure/table/blob_act()
if(prob(75))
@@ -451,6 +459,10 @@
rack_destroy()
return
/obj/structure/rack/mech_melee_attack(/obj/mecha/M)
visible.message("<span class='danger'>[M.name] smashes [src] apart!</span>")
rack_destroy(1)
/obj/structure/rack/CanPass(atom/movable/mover, turf/target, height=0)
if(height==0) return 1
if(src.density == 0) //Because broken racks -Agouri |TODO: SPRITE!|