Files
Aurora.3/code/modules/spell_system/artifacts/items/lich_phylactery.dm
T
FluffyandGitHub a3a4d46fa7 Hitby refactor (#19624)
Refactored hitby to be in line with TG's version.
Refactored item weight defines to a more clear naming scheme, also in
line with TG's version.
Refactored how the movement bumps are handled, ported signals to handle
them, in preparation for the movement update.
Fixed disposal hit bouncing the hitting atom on the wall.
Items do not push other items anymore if they are tiny.
2024-07-28 20:52:08 +00:00

45 lines
1.3 KiB
Plaintext

/obj/item/phylactery
name = "phylactery"
desc = "A twisted mummified heart."
icon = 'icons/obj/wizard.dmi'
icon_state = "cursedheart-off"
origin_tech = list(TECH_BLUESPACE = 8, TECH_MATERIAL = 8, TECH_BIO = 8)
w_class = WEIGHT_CLASS_HUGE
light_color = "#6633CC"
light_power = 3
light_range = 4
reagents_to_add = list(/singleton/reagent/toxin/undead = 120)
var/lich = null
/obj/item/phylactery/Initialize()
. = ..()
GLOB.world_phylactery += src
/obj/item/phylactery/Destroy()
to_chat(lich, SPAN_DANGER("Your phylactery was destroyed, your soul is cast into the abyss as your immortality vanishes away!"))
GLOB.world_phylactery -= src
lich = null
return ..()
/obj/item/phylactery/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
. = ..()
if(!lich)
. += "The heart is inert."
else
. += "The heart is pulsing slowly."
/obj/item/phylactery/attackby(obj/item/attacking_item, mob/user)
..()
if(istype(attacking_item, /obj/item/nullrod))
src.visible_message("\The [src] twists violently and explodes!")
gibs(src.loc)
qdel(src)
return
/obj/item/phylactery/pickup(mob/living/user as mob)
..()
to_chat(user, SPAN_WARNING("As you pick up \the [src], you feel a wave of dread wash over you."))
for(var/obj/machinery/light/P in view(7, user))
P.flicker(1)