Skip to content

Commit

Permalink
[MIRROR] Advanced Robotics Techweb Tweak and General Techweb QOL [MDB…
Browse files Browse the repository at this point in the history
… IGNORE] (#187)

* Advanced Robotics Techweb Tweak and General Techweb QOL (#78985)

---------

Co-authored-by: GPeckman <[email protected]>
  • Loading branch information
Steals-The-PRs and GPeckman authored Oct 20, 2023
1 parent 13cb150 commit e630f88
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions code/modules/research/techweb/_techweb.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions code/modules/research/techweb/_techweb_node.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 10 additions & 1 deletion code/modules/research/techweb/all_nodes.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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",
)
Expand Down

0 comments on commit e630f88

Please sign in to comment.