mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-21 04:48:18 +01:00
Diona Glow Bulbs (#8163)
You can now weld them apart, and walk through them.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user