[MIRROR] Ties research servers to Techwebs and de-hardcodes research point gen [MDB IGNORE] (#18735)

Ties research servers to Techwebs and de-hardcodes research point gen

Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-01-19 21:20:43 +00:00
committed by GitHub
co-authored by John Willard
parent 2271aca1bb
commit 2a8f93b2bf
8 changed files with 40 additions and 60 deletions
@@ -48,6 +48,13 @@
///All research servers connected to this individual techweb.
var/list/obj/machinery/rnd/server/techweb_servers = list()
///Boolean on whether the techweb should generate research points overtime.
var/should_generate_points = FALSE
///A multiplier applied to all research gain, cut in half if the Master server was sabotaged.
var/income_modifier = 1
///The amount of research points generated the techweb generated the latest time it generated.
var/last_income
/**
* Assoc list of relationships with various partners
* scientific_cooperation[partner_typepath] = relationship
@@ -4,6 +4,8 @@
/datum/techweb/science
id = "SCIENCE"
organization = "Nanotrasen"
should_generate_points = TRUE
//When something is researched, triggers the proc for this techweb only
/datum/techweb/science/research_node(datum/techweb_node/node, force = FALSE, auto_adjust_cost = TRUE, get_that_dosh = TRUE)