destructive analyzer runtime thing

This commit is contained in:
vuonojenmustaturska
2017-12-12 22:59:40 +02:00
parent b2c88230f0
commit 5fe94d2e49
@@ -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