Boards now show their required components on examine

This commit is contained in:
Arkatos1
2019-04-24 17:21:04 +02:00
parent 1544756ce6
commit b4ecfa4cec
@@ -56,6 +56,17 @@
/obj/item/circuitboard/machine
board_type = "machine"
/obj/item/circuitboard/examine(mob/user)
..()
if(LAZYLEN(req_components))
var/list/nice_list = list()
for(var/B in req_components)
var/atom/A = B
if(!ispath(A))
continue
nice_list += list("[req_components[A]] [initial(A.name)]")
to_chat(user,"<span class='notice'>Required components: [english_list(nice_list)].</span>")
/obj/item/circuitboard/message_monitor
name = "Circuit board (Message Monitor)"
build_path = /obj/machinery/computer/message_monitor