mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-15 09:56:47 +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:
@@ -1,13 +1,13 @@
|
||||
/obj/item/modular_computer/examine(mob/user, distance, is_adjacent)
|
||||
/obj/item/modular_computer/get_examine_text(mob/user, distance, is_adjacent, infix, suffix)
|
||||
. = ..()
|
||||
if(is_adjacent)
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE("It contains the following hardware:")))
|
||||
. += FONT_SMALL(SPAN_NOTICE("It contains the following hardware:"))
|
||||
for(var/obj/CH in get_all_components())
|
||||
to_chat(user, FONT_SMALL(SPAN_NOTICE(" - [capitalize_first_letters(CH.name)]")))
|
||||
. += FONT_SMALL(SPAN_NOTICE(" - [capitalize_first_letters(CH.name)]"))
|
||||
if(damage > broken_damage)
|
||||
to_chat(user, SPAN_DANGER("It is heavily damaged!"))
|
||||
. += SPAN_DANGER("It is heavily damaged!")
|
||||
else if(damage)
|
||||
to_chat(user, SPAN_WARNING("It is damaged."))
|
||||
. += SPAN_WARNING("It is damaged.")
|
||||
|
||||
/obj/item/modular_computer/proc/break_apart(msg = TRUE)
|
||||
if(msg)
|
||||
|
||||
Reference in New Issue
Block a user