From b46638a70f68148813afc4528ab06131420b9306 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+Steals-The-PRs@users.noreply.github.com> Date: Mon, 20 Nov 2023 03:36:36 +0300 Subject: [PATCH] [MIRROR] Fixes an issue with un-hidden (alien, syndie etc.) nodes not being researchable. [MDB IGNORE] (#722) * Fixes an issue with un-hidden (alien, syndie etc.) nodes not being researchable. (#79763) --------- Co-authored-by: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> --- code/modules/research/destructive_analyzer.dm | 4 ++-- code/modules/research/techweb/_techweb.dm | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/research/destructive_analyzer.dm b/code/modules/research/destructive_analyzer.dm index 03a6d9934f5..6a6ca353d5a 100644 --- a/code/modules/research/destructive_analyzer.dm +++ b/code/modules/research/destructive_analyzer.dm @@ -179,10 +179,10 @@ var/datum/techweb_node/node_to_discover = SSresearch.techweb_node_by_id(id) if(!istype(node_to_discover)) return FALSE - SSblackbox.record_feedback("nested tally", "item_deconstructed", 1, list("[node_to_discover.id]", "[loaded_item.type]")) if(!destroy_item()) return FALSE - stored_research.unhide_node(SSresearch.techweb_node_by_id(node_to_discover.id)) + SSblackbox.record_feedback("nested tally", "item_deconstructed", 1, list("[node_to_discover.id]", "[loaded_item.type]")) + stored_research.unhide_node(node_to_discover) return TRUE #undef DESTRUCTIVE_ANALYZER_DESTROY_POINTS diff --git a/code/modules/research/techweb/_techweb.dm b/code/modules/research/techweb/_techweb.dm index 8aeb63a9f8a..5bda3865df2 100644 --- a/code/modules/research/techweb/_techweb.dm +++ b/code/modules/research/techweb/_techweb.dm @@ -409,6 +409,8 @@ if(!istype(node)) return FALSE hidden_nodes -= node.id + ///Make it available if the prereq ids are already researched + update_node_status(node) return TRUE /datum/techweb/proc/update_tiers(datum/techweb_node/base)