Welding a tile away now requires harm mode and gives a new message

This commit is contained in:
joep van der velden
2019-09-01 13:29:14 +02:00
parent f281e42ee4
commit 46ebeafc8c
+2 -2
View File
@@ -96,8 +96,8 @@
burnt = FALSE
broken = FALSE
update_icon()
if(unfastened)
to_chat(user, "<span class='notice'>You start removing [src].</span>")
if(unfastened && user.a_intent == INTENT_HARM)
user.visible_message("<span class='danger'>[user] starts removing [src]!</span>", "<span class='warning'>You start removing [src] exposing space after you're done!</span>")
playsound(src, welder.usesound, 100, 1)
if(do_after(user, 50 * welder.toolspeed, target = src) && welder && welder.isOn())
to_chat(user, "<span class='notice'>You remove [src].</span>")