diff --git a/exp_scenario/module/commands/research.lua b/exp_scenario/module/commands/research.lua index fd9dffbf..a86aaf13 100644 --- a/exp_scenario/module/commands/research.lua +++ b/exp_scenario/module/commands/research.lua @@ -19,23 +19,25 @@ Storage.register(research, function(tbl) research = tbl end) +local mod_set = "base" + for _, mod_name in ipairs(config.mod_set_lookup) do if script.active_mods[mod_name] then - config.mod_set = mod_name + mod_set = mod_name break end end if script.active_mods["space-age"] and script.active_mods["PHI-CL"] and settings.startup["PHI-VP"] and settings.startup["PHI-VP-MAIN"] then - config.mod_set = "space-age" + mod_set = "space-age" end --- @param force LuaForce --- @param silent boolean True when no message should be printed function module.res_queue(force, silent) local res_q = force.research_queue - game.print(config.bonus_inventory.res[config.mod_set].name) - local res = force.technologies[config.bonus_inventory.res[config.mod_set].name] + game.print(config.bonus_inventory.res[mod_set].name) + local res = force.technologies[config.bonus_inventory.res[mod_set].name] if #res_q < config.queue_amount then for i = #res_q, config.queue_amount - 1 do