diff --git a/code/modules/detectivework/forensics.dm b/code/modules/detectivework/forensics.dm index 6b17e6e0..6bd1f103 100644 --- a/code/modules/detectivework/forensics.dm +++ b/code/modules/detectivework/forensics.dm @@ -552,6 +552,7 @@ "scanning" = scanning, "bloodsamp" = (bloodsamp ? bloodsamp.name : ""), "bloodsamp_desc" = (bloodsamp ? (bloodsamp.desc ? bloodsamp.desc : "No information on record.") : ""), + "lidstate" = closed ) ui = nanomanager.try_update_ui(user, src, ui_key, ui, data) @@ -592,6 +593,9 @@ bloodsamp.loc = src.loc bloodsamp = null + if(href_list["toggleLid"]) + toggle_lid() + return 1 /obj/machinery/dnaforensics/process() @@ -650,13 +654,10 @@ set category = "Object" set name = "Toggle Lid" set src in oview(1) - if(usr.stat || !(istype(usr,/mob/living/carbon/human))) + if(usr.stat || !isliving(usr)) usr << "No." return - if(issilicon(usr)) - return - if(scanning) usr << "You can't do that while [src] is scanning!" return diff --git a/nano/templates/dnaforensics.tmpl b/nano/templates/dnaforensics.tmpl index a1e3b25f..efe69e61 100644 --- a/nano/templates/dnaforensics.tmpl +++ b/nano/templates/dnaforensics.tmpl @@ -3,6 +3,9 @@