Update destructive_analyzer.dm

This commit is contained in:
deathride58
2017-12-13 16:49:05 -05:00
committed by GitHub
parent 51cce087d8
commit 2e83779018

View File

@@ -121,18 +121,11 @@ Note: Must be placed within 3 tiles of the R&D Console
return FALSE return FALSE
if(QDELETED(loaded_item) || QDELETED(linked_console) || !user.Adjacent(linked_console) || QDELETED(src)) if(QDELETED(loaded_item) || QDELETED(linked_console) || !user.Adjacent(linked_console) || QDELETED(src))
return FALSE return FALSE
<<<<<<< HEAD
var/dtype = loaded_item.type
if(destroy_item(loaded_item))
linked_console.stored_research.research_points += point_value
linked_console.stored_research.deconstructed_items[dtype] = point_value
=======
var/loaded_type = loaded_item.type var/loaded_type = loaded_item.type
if(destroy_item(loaded_item)) if(destroy_item(loaded_item))
linked_console.stored_research.research_points += point_value linked_console.stored_research.research_points += point_value
linked_console.stored_research.deconstructed_items[loaded_type] = point_value linked_console.stored_research.deconstructed_items[loaded_type] = point_value
>>>>>>> 805f0be... Fixes two unrelated runtimes (#33494)
return TRUE return TRUE
/obj/machinery/rnd/destructive_analyzer/proc/unload_item() /obj/machinery/rnd/destructive_analyzer/proc/unload_item()