Adds violin destruction (#2575)

Attacking people with the violin will not break said instrument. Also, shooting bottles will now break them as well
This commit is contained in:
Alberyk
2017-06-03 05:32:37 -03:00
committed by skull132
parent db1c130e1c
commit e8cbf0fe50
5 changed files with 21 additions and 1 deletions
@@ -391,3 +391,10 @@
if((M.client && M.machine == src))
attack_self(M)
return
/obj/item/device/violin/attack(mob/living/carbon/M as mob, mob/living/carbon/user as mob)
..()
user.visible_message("<span class='danger'>\The [user] shatters \the [src] into pieces!</span>")
playsound(loc, 'sound/effects/kabong.ogg', 50, 1)
new /obj/item/weapon/material/shard/wood(get_turf(user))
qdel(src)
@@ -99,3 +99,6 @@
/obj/item/weapon/material/shard/phoron/New(loc)
..(loc, "phglass")
/obj/item/weapon/material/shard/wood/New(loc)
..(loc, "wood")