mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Fixes Research queue runtimes (#85020)
## About The Pull Request Research Queue now checks the correct datum instead of trying to call procs on keys. This fixes automatic research for free nodes. ## Why It's Good For The Game Fixes good, runtimes bad ## Changelog 🆑 fix: Free items in research queue will now correctly be researched automatically. /🆑
This commit is contained in:
@@ -104,10 +104,11 @@ SUBSYSTEM_DEF(research)
|
||||
|
||||
techweb_list.last_income = world.time
|
||||
|
||||
if(techweb_list.research_queue_nodes.len)
|
||||
if(length(techweb_list.research_queue_nodes))
|
||||
techweb_list.research_node_id(techweb_list.research_queue_nodes[1]) // Attempt to research the first node in queue if possible
|
||||
|
||||
for(var/datum/techweb_node/node as anything in techweb_list.research_queue_nodes)
|
||||
for(var/node_id in techweb_list.research_queue_nodes)
|
||||
var/datum/techweb_node/node = SSresearch.techweb_node_by_id(node_id)
|
||||
if(node.is_free(techweb_list)) // Automatically research all free nodes in queue if any
|
||||
techweb_list.research_node(node)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user