mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 07:03:30 +01:00
Boards now show their required components on examine
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user