Pretty Parts (#10362)

Part replacers now output the contents of closed machines nicely.
This commit is contained in:
Geeves
2020-10-28 19:43:56 +02:00
committed by GitHub
parent 7272ba30a9
commit 6bc7db056f
2 changed files with 8 additions and 3 deletions
+2 -3
View File
@@ -388,9 +388,8 @@ Class Procs:
RefreshParts()
update_icon()
else
to_chat(user, "<span class='notice'>Following parts detected in the machine:</span>")
for(var/obj/item/C in component_parts)
to_chat(user, "<span class='notice'> [C.name]</span>")
to_chat(user, "<span class='notice'>The following parts have been detected in \the [src]:</span>")
to_chat(user, counting_english_list(component_parts))
if(parts_replaced) //only play sound when RPED actually replaces parts
playsound(src, 'sound/items/rped.ogg', 40, TRUE)
return 1