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:
larentoun
2024-07-17 16:27:13 -04:00
committed by SkyratBot
parent c05c57338d
commit cedb74519d
+3 -2
View File
@@ -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)