Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 871ea02

Browse filesBrowse files
tentacles destroy lights on hit the second
1 parent 17e4cc6 commit 871ea02
Copy full SHA for 871ea02

1 file changed

+27-1Lines changed: 27 additions & 1 deletion

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎yogstation/code/modules/antagonists/darkspawn/darkspawn_objects/umbral_tendrils.dm‎

Copy file name to clipboardExpand all lines: yogstation/code/modules/antagonists/darkspawn/darkspawn_objects/umbral_tendrils.dm
+27-1Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
to_chat(user, "<span class='velvet'><b>Help intent:</b> Click on an open tile within seven tiles to jump to it for 10 Psi.</span>")
3737
to_chat(user, "<span class='velvet'><b>Disarm intent:</b> Click on an airlock to force it open for 15 Psi (or 30 if it's bolted.)</span>")
3838
to_chat(user, "<span class='velvet'><b>Harm intent:</b> Fire a projectile that travels up to five tiles, knocking down[twin ? " and pulling forwards" : ""] the first creature struck.</span>")
39+
to_chat(user, "<span class='velvet'>The tendrils will break any lights hit in melee,</span>")
3940
to_chat(user, "<span class='velvet'>The tendrils will shatter light fixtures instantly, as opposed to in several attacks.</span>")
4041
to_chat(user, "<span class='velvet'>Also functions to pry open depowered airlocks on any intent other than harm.</span>")
4142

@@ -52,14 +53,39 @@
5253
if(istype(target, /obj/structure/glowshroom))
5354
visible_message("<span class='warning'>[src] tears [target] to shreds!</span>")
5455
qdel(target)
55-
return
56+
if(isliving(target))
57+
var/mob/living/L = target
58+
if(isethereal(target))
59+
target.emp_act(EMP_LIGHT)
60+
for(var/obj/item/O in target)
61+
if(O.light_range && O.light_power)
62+
disintegrate(O)
63+
if(L.pulling && L.pulling.light_range && isitem(L.pulling))
64+
disintegrate(L.pulling)
65+
else if(isitem(target))
66+
var/obj/item/I = target
67+
if(I.light_range && I.light_power)
68+
disintegrate(I)
5669
switch(user.a_intent) //Note that airlock interactions can be found in airlock.dm.
5770
if(INTENT_HELP)
5871
if(isopenturf(target))
5972
tendril_jump(user, target)
6073
if(INTENT_HARM)
6174
tendril_swing(user, target)
6275

76+
/obj/item/umbral_tendrils/proc/disintegrate(obj/item/O)
77+
if(istype(O, /obj/item/pda))
78+
var/obj/item/pda/PDA = O
79+
PDA.set_light(0)
80+
PDA.fon = FALSE
81+
PDA.f_lum = 0
82+
PDA.update_icon()
83+
visible_message("<span class='danger'>The light in [PDA] shorts out!</span>")
84+
else
85+
visible_message("<span class='danger'>[O] is disintegrated by [src]!</span>")
86+
O.burn()
87+
playsound(src, 'sound/items/welder.ogg', 50, 1)
88+
6389
/obj/item/umbral_tendrils/proc/tendril_jump(mob/living/user, turf/open/target) //throws the user towards the target turf
6490
if(!darkspawn.has_psi(10))
6591
to_chat(user, "<span class='warning'>You need at least 10 Psi to jump!</span>")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.