Phylactery and holy water additions (#4153)

-picking up a phylactery now gives a message of how this thing might be bad and flickers the lights around you
-holy water will now set the undead on fire
This commit is contained in:
Alberyk
2018-01-27 13:31:59 +01:00
committed by Werner
parent 49b62faaae
commit 7ea1a89433
3 changed files with 21 additions and 3 deletions
+9 -3
View File
@@ -136,7 +136,7 @@
light_color = "#6633CC"
light_power = 3
light_range = 4
var/lich = null
/obj/item/phylactery/Initialize()
@@ -150,14 +150,14 @@
world_phylactery -= src
lich = null
return ..()
/obj/item/phylactery/examine(mob/user)
..(user)
if(!lich)
user << "The heart is inert."
else
user << "The heart is pulsing slowly."
/obj/item/phylactery/attackby(var/obj/item/I, var/mob/user)
..()
if(istype(I, /obj/item/weapon/nullrod))
@@ -165,3 +165,9 @@
gibs(src.loc)
qdel(src)
return
/obj/item/phylactery/pickup(mob/living/user as mob)
if(!user.is_wizard() && src.lich)
user << "<span class='warning'>As you pick up \the [src], you feel a wave of dread wash over you.</span>"
for(var/obj/machinery/light/P in view(7, user))
P.flicker(1)