mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 16:10:02 +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:
@@ -33,28 +33,28 @@
|
||||
|
||||
atmos_canpass = CANPASS_PROC
|
||||
|
||||
/obj/structure/window/examine(mob/user)
|
||||
/obj/structure/window/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
|
||||
if(health == maxhealth)
|
||||
to_chat(user, SPAN_NOTICE("It looks fully intact."))
|
||||
. += SPAN_NOTICE("It looks fully intact.")
|
||||
else
|
||||
var/perc = health / maxhealth
|
||||
if(perc > 0.75)
|
||||
to_chat(user, SPAN_NOTICE("It has a few cracks."))
|
||||
. += SPAN_NOTICE("It has a few cracks.")
|
||||
else if(perc > 0.5)
|
||||
to_chat(user, SPAN_WARNING("It looks slightly damaged."))
|
||||
. += SPAN_WARNING("It looks slightly damaged.")
|
||||
else if(perc > 0.25)
|
||||
to_chat(user, SPAN_WARNING("It looks moderately damaged."))
|
||||
. += SPAN_WARNING("It looks moderately damaged.")
|
||||
else
|
||||
to_chat(user, SPAN_DANGER("It looks heavily damaged."))
|
||||
. += SPAN_DANGER("It looks heavily damaged.")
|
||||
if(silicate)
|
||||
if (silicate < 30)
|
||||
to_chat(user, SPAN_NOTICE("It has a thin layer of silicate."))
|
||||
. += SPAN_NOTICE("It has a thin layer of silicate.")
|
||||
else if (silicate < 70)
|
||||
to_chat(user, SPAN_NOTICE("It is covered in silicate."))
|
||||
. += SPAN_NOTICE("It is covered in silicate.")
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("There is a thick layer of silicate covering it."))
|
||||
. += SPAN_NOTICE("There is a thick layer of silicate covering it.")
|
||||
|
||||
/obj/structure/window/proc/update_nearby_icons()
|
||||
SSicon_smooth.add_to_queue_neighbors(src)
|
||||
|
||||
Reference in New Issue
Block a user