Constructs 2.0 - Living Stone (#5040)

* Construct Overhaul + Related Fixes/Tweaks
This commit is contained in:
Mechoid
2018-04-04 23:45:00 -07:00
committed by Atermonera
parent d5c5249327
commit 57ab0e715b
36 changed files with 1427 additions and 167 deletions

View File

@@ -174,6 +174,21 @@
visible_message("<span class='danger'>\The [user] tears apart \the [src]!</span>")
src.break_to_parts()
/obj/structure/table/attack_generic(mob/user as mob, var/damage)
if(damage >= 10)
if(reinforced && prob(70))
visible_message("<span class='danger'>\The [user] smashes against \the [src]!</span>")
take_damage(damage/2)
user.do_attack_animation(src)
..()
else
visible_message("<span class='danger'>\The [user] tears apart \the [src]!</span>")
src.break_to_parts()
user.do_attack_animation(src)
return 1
visible_message("<span class='notice'>\The [user] scratches at \the [src]!</span>")
return ..()
/obj/structure/table/MouseDrop_T(obj/item/stack/material/what)
if(can_reinforce && isliving(usr) && (!usr.stat) && istype(what) && usr.get_active_hand() == what && Adjacent(usr))
reinforce_table(what, usr)