From e630f887bfe7db3858280b672fe99b281f5d0933 Mon Sep 17 00:00:00 2001 From: Iajret Creature <122297233+AnArgonianLizardThatStealsPRs@users.noreply.github.com> Date: Sat, 21 Oct 2023 02:12:31 +0300 Subject: [PATCH] [MIRROR] Advanced Robotics Techweb Tweak and General Techweb QOL [MDB IGNORE] (#187) * Advanced Robotics Techweb Tweak and General Techweb QOL (#78985) --------- Co-authored-by: GPeckman <21979502+GPeckman@users.noreply.github.com> --- code/modules/research/techweb/_techweb.dm | 4 ++++ code/modules/research/techweb/_techweb_node.dm | 2 ++ code/modules/research/techweb/all_nodes.dm | 11 ++++++++++- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/code/modules/research/techweb/_techweb.dm b/code/modules/research/techweb/_techweb.dm index 8a06607ec59..bd1e5cc4a80 100644 --- a/code/modules/research/techweb/_techweb.dm +++ b/code/modules/research/techweb/_techweb.dm @@ -365,6 +365,10 @@ add_experiments(unlocked_node.discount_experiments) update_node_status(unlocked_node) + // Gain more new experiments + if (node.experiments_to_unlock.len) + add_experiments(node.experiments_to_unlock) + // Unlock what the research actually unlocks for(var/id in node.design_ids) add_design_by_id(id) diff --git a/code/modules/research/techweb/_techweb_node.dm b/code/modules/research/techweb/_techweb_node.dm index ae50ea7f65f..f5e1481e62c 100644 --- a/code/modules/research/techweb/_techweb_node.dm +++ b/code/modules/research/techweb/_techweb_node.dm @@ -36,6 +36,8 @@ var/list/required_experiments = list() /// If completed, these experiments give a specific point amount discount to the node.area var/list/discount_experiments = list() + /// When this node is completed, allows these experiments to be performed. + var/list/experiments_to_unlock = list() /// Whether or not this node should show on the wiki var/show_on_wiki = TRUE diff --git a/code/modules/research/techweb/all_nodes.dm b/code/modules/research/techweb/all_nodes.dm index 20851acea68..b06d22bbb98 100644 --- a/code/modules/research/techweb/all_nodes.dm +++ b/code/modules/research/techweb/all_nodes.dm @@ -128,6 +128,14 @@ "voice_analyzer", "watering_can", ) + experiments_to_unlock = list( + /datum/experiment/autopsy/nonhuman, + /datum/experiment/scanning/random/material/medium/one, + /datum/experiment/scanning/random/material/medium/three, + /datum/experiment/scanning/random/material/hard/one, + /datum/experiment/scanning/random/material/hard/two, + /datum/experiment/scanning/people/novel_organs, + ) /datum/techweb_node/mmi id = "mmi" @@ -630,6 +638,7 @@ ) research_costs = list(TECHWEB_POINT_TYPE_GENERIC = 12500) discount_experiments = list(/datum/experiment/scanning/random/material/easy = 7500) + experiments_to_unlock = list(/datum/experiment/scanning/points/machinery_pinpoint_scan/tier2_microlaser) /datum/techweb_node/adv_engi id = "adv_engi" @@ -911,7 +920,7 @@ id = "adv_robotics" display_name = "Advanced Robotics Research" description = "Machines using actual neural networks to simulate human lives." - prereq_ids = list("neural_programming", "robotics") + prereq_ids = list("robotics") design_ids = list( "mmi_posi", )