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:
Matt Atlas
2024-02-11 21:58:20 +00:00
committed by GitHub
co-authored by Matt Atlas
parent d57c5e7c43
commit 4423d03f2f
296 changed files with 1317 additions and 1257 deletions
+9 -9
View File
@@ -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)