Skip to content

Commit

Permalink
[MIRROR] Fixes an issue with un-hidden (alien, syndie etc.) nodes not…
Browse files Browse the repository at this point in the history
… being researchable. [MDB IGNORE] (#722)

* Fixes an issue with un-hidden (alien, syndie etc.) nodes not being researchable. (#79763)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Ghom <[email protected]>
  • Loading branch information
3 people authored Nov 20, 2023
1 parent e947e55 commit b46638a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/research/destructive_analyzer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions code/modules/research/techweb/_techweb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b46638a

Please sign in to comment.