Update GUI Research Tracker (#390)

* Update research.lua

* Update research.lua

* Update research.lua

* Format config and move pollution ageing

* Update research.lua

* Update research.lua

* Update research.lua

---------

Co-authored-by: Cooldude2606 <25043174+Cooldude2606@users.noreply.github.com>
This commit is contained in:
2025-04-27 07:34:35 +09:00
committed by GitHub
parent 79ab6db28a
commit aee15341bd
3 changed files with 38 additions and 39 deletions

View File

@@ -23,7 +23,7 @@ end)
--- @param silent boolean True when no message should be printed
function module.res_queue(force, silent)
local res_q = force.research_queue
local res = force.technologies[config.bonus_inventory.res[config.mod_set].name]
local res = force.technologies[config.bonus_inventory.log[config.mod_set].name]
if #res_q < config.queue_amount then
for i = #res_q, config.queue_amount - 1 do
@@ -71,7 +71,7 @@ local function on_research_finished(event)
if not research.res_queue_enable then return end
local force = event.research.force
local research = assert(config.bonus_inventory.res[config.mod_set], "Unknown mod set: " .. tostring(config.mod_set))
local research = assert(config.bonus_inventory.log[config.mod_set], "Unknown mod set: " .. tostring(config.mod_set))
local technology = assert(force.technologies[research.name], "Unknown technology: " .. tostring(research.name))
if technology.level > research.level then
module.res_queue(force, event.by_script)