The destruction tab now tells you the current research level, and however much material you would receive from deconstructing the object

This commit is contained in:
madmanmartian
2019-08-30 03:56:44 +01:00
parent 0d1cd33c0d
commit b2cb7c8815

View File

@@ -856,8 +856,15 @@ won't update every console in existence) but it's more of a hassle to do. Also,
Origin Tech:<BR>"}
var/list/temp_tech = linked_destroy.ConvertReqString2List(linked_destroy.loaded_item.origin_tech)
for(var/T in temp_tech)
dat += "* [CallTechName(T)] [temp_tech[T]]<BR>"
var/datum/tech/TT = files.GetKTechByID(T)
dat += "* [CallTechName(T)] [temp_tech[T]] \[Current research level: [TT.level]\]<BR>"
if(linked_destroy.loaded_item.materials)
dat += "Material Composition:<UL>"
for(var/matID in linked_destroy.loaded_item.materials.storage)
if(linked_destroy.loaded_item.materials.storage[matID])
var/datum/material/M = linked_destroy.loaded_item.materials.getMaterial(matID)
dat += "<LI>[M.processed_name] : [linked_destroy.loaded_item.materials.storage[matID]]</LI>"
dat += "</UL><BR>"
dat += {"<HR><A href='?src=\ref[src];deconstruct=1'>Deconstruct Item</A> ||
<A href='?src=\ref[src];eject_item=1'>Eject Item</A> || "}
/////////////////////PROTOLATHE SCREENS/////////////////////////