From d3f6329aeec5aac81ad50aefba8ee2257257f08d Mon Sep 17 00:00:00 2001 From: Certh Date: Thu, 31 Dec 2015 14:52:44 +0100 Subject: [PATCH] required reagants now show when searching on protolathe --- code/modules/research/rdconsole.dm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/modules/research/rdconsole.dm b/code/modules/research/rdconsole.dm index 6f24645dcca..6112d6f5a9b 100644 --- a/code/modules/research/rdconsole.dm +++ b/code/modules/research/rdconsole.dm @@ -913,6 +913,15 @@ proc/CallMaterialName(ID) temp_material += " [D.materials[M]/coeff] [CallMaterialName(M)]" c = min(c,t) + for(var/R in D.reagents) + t = linked_lathe.check_mat(D, R) + temp_material += " | " + if (t < 1) + temp_material += "[D.reagents[R]/coeff] [CallMaterialName(R)]" + else + temp_material += " [D.reagents[R]/coeff] [CallMaterialName(R)]" + c = min(c,t) + if (c >= 1) dat += "[D.name]" if(c >= 5)