mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Merge pull request #15169 from lzimann/mechabuff
Makes mech don't suck while destroying walls
This commit is contained in:
@@ -44,16 +44,28 @@
|
||||
smooth_icon_neighbors(src)
|
||||
|
||||
/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))
|
||||
table_destroy(1)
|
||||
return
|
||||
|
||||
/obj/structure/table/mech_melee_attack(obj/mecha/M)
|
||||
visible_message("<span class='danger'>[M.name] smashes [src] apart!</span>")
|
||||
playsound(src.loc, 'sound/weapons/punch4.ogg', 50, 1)
|
||||
table_destroy(1)
|
||||
|
||||
/obj/structure/table/attack_alien(mob/living/user)
|
||||
user.do_attack_animation(src)
|
||||
playsound(src.loc, 'sound/weapons/bladeslice.ogg', 50, 1)
|
||||
@@ -446,6 +458,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!|
|
||||
|
||||
Reference in New Issue
Block a user