mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-29 11:41:14 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user