mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Rewrite examine() to pass a list around
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
/obj/item/modular_computer/examine(var/mob/user)
|
||||
. = ..()
|
||||
if(damage > broken_damage)
|
||||
to_chat(user, "<span class='danger'>It is heavily damaged!</span>")
|
||||
. += "<span class='danger'>It is heavily damaged!</span>"
|
||||
else if(damage)
|
||||
to_chat(user, "It is damaged.")
|
||||
. += "It is damaged."
|
||||
|
||||
/obj/item/modular_computer/proc/break_apart()
|
||||
visible_message("\The [src] breaks apart!")
|
||||
|
||||
Reference in New Issue
Block a user