From c292004fc1ee0148e024ad706c21f85f577ff6fc Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 16 Apr 2025 17:49:16 +0900 Subject: [PATCH] . --- exp_scenario/module/commands/research.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/exp_scenario/module/commands/research.lua b/exp_scenario/module/commands/research.lua index c838a9be..f1248acb 100644 --- a/exp_scenario/module/commands/research.lua +++ b/exp_scenario/module/commands/research.lua @@ -19,6 +19,17 @@ Storage.register(research, function(tbl) research = tbl end) +for _, mod_name in ipairs(config.mod_set_lookup) do + if script.active_mods[mod_name] then + config.mod_set = mod_name + break + end +end + +if script.active_mods["PHI-CL"] and settings.startup["PHI-VP"] and settings.startup["PHI-VP-MAIN"] then + config.mod_set = "base" +end + --- @param force LuaForce --- @param silent boolean True when no message should be printed function module.res_queue(force, silent) @@ -27,7 +38,7 @@ function module.res_queue(force, silent) game.print(config.mod_set) game.print(config.bonus_inventory.res[config.mod_set].name) game.print(force.technologies[config.bonus_inventory.res[config.mod_set].name].name) - + if #res_q < config.queue_amount then for i = #res_q, config.queue_amount - 1 do -- force.add_research(res)