From 5fe94d2e49652dfef6820831dfba882cab0a1afc Mon Sep 17 00:00:00 2001 From: vuonojenmustaturska Date: Tue, 12 Dec 2017 22:59:40 +0200 Subject: [PATCH] destructive analyzer runtime thing --- code/modules/research/destructive_analyzer.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index b69f88d07b8..05acb20f0e8 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -128,9 +128,10 @@ Note: Must be placed within 3 tiles of the R&D Console return FALSE if(QDELETED(loaded_item) || QDELETED(linked_console) || !user.Adjacent(linked_console) || QDELETED(src)) return FALSE + var/loaded_type = loaded_item.type if(destroy_item(loaded_item)) linked_console.stored_research.research_points += point_value - linked_console.stored_research.deconstructed_items[loaded_item.type] = point_value + linked_console.stored_research.deconstructed_items[loaded_type] = point_value return TRUE