Diona Glow Bulbs (#8163)

You can now weld them apart, and walk through them.
This commit is contained in:
ParadoxSpace
2020-02-01 15:11:16 -07:00
committed by GitHub
parent 7c2407b3ee
commit 690d658c82
2 changed files with 60 additions and 0 deletions
+19
View File
@@ -42,6 +42,25 @@
light_power = 3
light_range = 3
light_color = "#557733"
density = 0
/obj/structure/diona/bulb/attackby(obj/item/W, mob/user)
if(W.iswelder())
var/obj/item/weldingtool/WT = W
if (!WT.welding)
to_chat(user, "<span class='danger'>\The [WT] must be turned on!</span>")
return
else if (WT.remove_fuel(0,user))
to_chat(user, "<span class='notice'>You begin slicing through the skin of \the [src].</span>")
if(do_after(user, 20/W.toolspeed, act_target = src))
if(QDELETED(src) || !WT.isOn())
return
playsound(src.loc, 'sound/items/Welder2.ogg', 50, 1)
user.visible_message("<span class='notice'>\ [user] slices through the skin of \the [src], revealing a confused diona nymph.</span>")
else
return
spawn_diona_nymph(src.loc)
qdel(src)
/obj/structure/diona/bulb/unpowered
name = "unpowered glow bulb"