better gargoyle

This commit is contained in:
Seris02
2023-02-16 20:01:37 +08:00
parent f4d900475d
commit d4cb44c6a6
2 changed files with 10 additions and 4 deletions

View File

@@ -21,8 +21,7 @@
if (!gargoyle)
return
if (paused && gargoyle.loc != paused_loc)
paused = FALSE
energy = max(energy - 5, 0)
unpause()
if (energy > 0)
if (!transformed && !paused)
energy = max(0,energy-0.05)
@@ -80,10 +79,11 @@
return
var/datum/component/gargoyle/comp = GetComponent(/datum/component/gargoyle)
if (comp && !comp.transformed)
if (comp && !comp.transformed && !comp.paused)
comp.paused = TRUE
comp.paused_loc = loc
comp.RegisterSignal(src, COMSIG_ATOM_ENTERING, /datum/component/gargoyle/proc/unpause)
to_chat(src, "<span class='notice'>You start conserving your energy.</span>")
/mob/living/carbon/human/proc/gargoyle_checkenergy()
set name = "Gargoyle - Check Energy"

View File

@@ -34,7 +34,7 @@
obj_integrity = H.health + 100
original_int = obj_integrity
name = "statue of [H.name]"
desc = "A very lifelike statue of [H.name]."
desc = "A very lifelike statue."
stored_examine = H.examine()
description_fluff = H.get_description_fluff()
@@ -73,6 +73,11 @@
unpetrify()
. = ..()
/obj/structure/gargoyle/examine_icon()
var/icon/examine_icon = ..()
examine_icon.MapColors(rgb(77,77,77), rgb(150,150,150), rgb(28,28,28), rgb(0,0,0))
return examine_icon
/obj/structure/gargoyle/get_description_info()
if (gargoyle)
if (isspace(loc) || isopenspace(loc))
@@ -82,6 +87,7 @@
/obj/structure/gargoyle/examine(mob/user)
. = ..()
if (gargoyle && stored_examine)
. += "The statue seems to have a bit more to them..."
. += stored_examine
return