Skip to content

Commit

Permalink
[MIRROR] Fixes destructive analyzer being unable to research anything…
Browse files Browse the repository at this point in the history
… [MDB IGNORE](#864)

* Fixes destructive analyzer being unable to research anything (#79953)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
3 people authored Nov 28, 2023
1 parent 3073737 commit dbd7473
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/research/destructive_analyzer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
if(isnull(id))
return FALSE

var/item_type = loaded_item.type
if(id == DESTRUCTIVE_ANALYZER_DESTROY_POINTS)
if(!destroy_item(gain_research_points = TRUE))
return FALSE
Expand All @@ -181,7 +182,7 @@
return FALSE
if(!destroy_item())
return FALSE
SSblackbox.record_feedback("nested tally", "item_deconstructed", 1, list("[node_to_discover.id]", "[loaded_item.type]"))
SSblackbox.record_feedback("nested tally", "item_deconstructed", 1, list("[node_to_discover.id]", "[item_type]"))
stored_research.unhide_node(node_to_discover)
return TRUE

Expand Down

0 comments on commit dbd7473

Please sign in to comment.