Creates research costs for some PKA mods (#22748)

* req_tech test

* add req_tech to some PKA mods

* var/requires_whitelist test

* forget a newline

* how do I newline

* remove research reqs

* conform to new /// comment style

---------

Co-authored-by: ZERO-XZB <temp@temp.com>
This commit is contained in:
ZERO-XZB
2023-10-09 12:46:11 -07:00
committed by GitHub
parent a20394b49d
commit 6f76740f9e
3 changed files with 8 additions and 0 deletions

View File

@@ -45,3 +45,5 @@ other types of metals and chemistry for reagents).
var/list/reagents_list = list() //List of reagents. Format: "id" = amount.
var/maxstack = 1
var/lathe_time_factor = 1 //How many times faster than normal is this to build on the protolathe
/// Determines whether or not we get to get a design blueprint from a disk
var/requires_whitelist = FALSE

View File

@@ -89,6 +89,8 @@ research holder datum.
/datum/research/proc/DesignHasReqs(datum/design/D)
if(D.id in blacklisted_designs)
return FALSE
if(D.requires_whitelist && !(known_designs[D.id]))
return FALSE
if(D.req_tech.len == 0)
return TRUE
for(var/req in D.req_tech)