mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Adds examine boxes. (#18370)
* Adds examine boxes. * lint * what kind of dreams did you dream? * unlimited * midgardsormr * sdsd * fixes --------- Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
@@ -13,18 +13,18 @@
|
||||
. = ..()
|
||||
health = maxHealth
|
||||
|
||||
/obj/structure/gore/examine(mob/user, distance, is_adjacent)
|
||||
/obj/structure/gore/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(distance <= 2)
|
||||
var/health_div = health / maxHealth
|
||||
if(health_div >= 0.9)
|
||||
to_chat(user, SPAN_NOTICE("\The [src] appears completely intact."))
|
||||
. += SPAN_NOTICE("\The [src] appears completely intact.")
|
||||
else if(health_div >= 0.7)
|
||||
to_chat(user, SPAN_NOTICE("\The [src] is starting to tear somewhat."))
|
||||
. += SPAN_NOTICE("\The [src] is starting to tear somewhat.")
|
||||
else if(health_div >= 0.4)
|
||||
to_chat(user, SPAN_WARNING("\The [src] is starting to fall apart."))
|
||||
. += SPAN_WARNING("\The [src] is starting to fall apart.")
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src] is barely holding itself together!"))
|
||||
. += SPAN_WARNING("\The [src] is barely holding itself together!")
|
||||
|
||||
/obj/structure/gore/proc/healthcheck()
|
||||
if(health <= 0)
|
||||
|
||||
@@ -13,18 +13,18 @@
|
||||
. = ..()
|
||||
health = maxHealth
|
||||
|
||||
/obj/structure/bed/nest/examine(mob/user, distance, is_adjacent)
|
||||
/obj/structure/bed/nest/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(distance <= 2)
|
||||
var/health_div = health / maxHealth
|
||||
if(health_div >= 0.9)
|
||||
to_chat(user, SPAN_NOTICE("\The [src] appears completely intact."))
|
||||
. += SPAN_NOTICE("\The [src] appears completely intact.")
|
||||
else if(health_div >= 0.7)
|
||||
to_chat(user, SPAN_NOTICE("\The [src] is starting to tear somewhat."))
|
||||
. += SPAN_NOTICE("\The [src] is starting to tear somewhat.")
|
||||
else if(health_div >= 0.4)
|
||||
to_chat(user, SPAN_WARNING("\The [src] is starting to fall apart."))
|
||||
. += SPAN_WARNING("\The [src] is starting to fall apart.")
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src] is barely holding itself together!"))
|
||||
. += SPAN_WARNING("\The [src] is barely holding itself together!")
|
||||
|
||||
/obj/structure/bed/nest/update_icon()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user