mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user