mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-28 11:03:19 +00:00
better gargoyle
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user