Medical Wrench suicide now glows brightly (#20607)

* LET THERE BE LIGHT

* little flash for those around you as well

* Add vi3trice's changes
This commit is contained in:
Luc
2023-03-26 07:07:34 -04:00
committed by GitHub
parent d07f2138f2
commit d51d288ea7
+20 -2
View File
@@ -82,8 +82,19 @@
/obj/item/wrench/medical/suicide_act(mob/living/user)
user.visible_message("<span class='suicide'>[user] is praying to the medical wrench to take [user.p_their()] soul. It looks like [user.p_theyre()] trying to commit suicide!</span>")
// TODO Make them glow with the power of the M E D I C A L W R E N C H
// during their ascension
// HAVE THEM GLOW WITH THE BRIGHTNESS OF A THOUSAND SUNS
user.set_light(10, 25, rgb(255, 252, 82))
var/previous_color = user.color
user.color = rgb(255, 252, 82)
// thank you vi3
user.add_filter("sacrifice_glow", 2, list("type" = "outline", "color" = "#55dcfdd2", "size" = 2))
var/filter = user.get_filter("sacrifice_glow")
// Pulse in and out
animate(filter, alpha = 110, time = 3, loop = -1)
animate(alpha = 40, time = 6)
// Stun stops them from wandering off
user.Stun(10 SECONDS)
@@ -98,6 +109,10 @@
for(var/obj/item/W in user)
user.unEquip(W)
for(var/mob/living/M in orange(2, src))
// you're close enough, it's pretty fuckin bright
M.flash_eyes(1, TRUE, TRUE)
var/obj/item/wrench/medical/W = new /obj/item/wrench/medical(loc)
W.add_fingerprint(user)
W.desc += " For some reason, it reminds you of [user.name]."
@@ -105,5 +120,8 @@
if(!user)
return
user.color = previous_color // for the sake of their ghost
user.dust()
user.visible_message("<span class='suicide'>[user]'s soul coalesces into a new [W.name]!</span>")
return OBLITERATION