Fixing empty new lines on circuit examines.

This commit is contained in:
Ghommie
2020-04-24 23:44:07 +02:00
parent debbd3edab
commit ca2d4ae28f
2 changed files with 7 additions and 3 deletions

View File

@@ -79,7 +79,9 @@
for(var/I in assembly_components)
var/obj/item/integrated_circuit/IC = I
. += IC.external_examine(user)
var/text = IC.external_examine(user)
if(text)
. += text
if(opened)
interact(user)

View File

@@ -36,7 +36,9 @@ a creative player the means to solve many problems. Circuits are held inside an
/obj/item/integrated_circuit/examine(mob/user)
interact(user)
. = ..()
. += external_examine(user)
var/text = external_examine(user)
if(text)
. += text
// Can be called via electronic_assembly/attackby()
/obj/item/integrated_circuit/proc/additem(var/obj/item/I, var/mob/living/user)
@@ -57,7 +59,7 @@ a creative player the means to solve many problems. Circuits are held inside an
var/datum/integrated_io/activate/A = activators[k]
if(A.linked.len)
to_chat(user, "The '[A]' is connected to [A.get_linked_to_desc()].")
any_examine(user)
to_chat(user, any_examine(user))
interact(user)
// This should be used when someone is examining from an 'outside' perspective, e.g. reading a screen or LED.