This commit is contained in:
2025-04-19 12:41:56 +09:00
parent 0afd445da9
commit 9e0ccf87e4

View File

@@ -27,10 +27,6 @@ for _, mod_name in ipairs(config.mod_set_lookup) do
end end
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
local research_time_format = ExpUtil.format_time_factory{ format = "clock", hours = true, minutes = true, seconds = true } local research_time_format = ExpUtil.format_time_factory{ format = "clock", hours = true, minutes = true, seconds = true }
local empty_time = research_time_format(nil) local empty_time = research_time_format(nil)
@@ -89,15 +85,9 @@ end
local function research_notification(event) local function research_notification(event)
if config.inf_res[config.mod_set][event.research.name] then if config.inf_res[config.mod_set][event.research.name] then
if event.research.name == config.bonus_inventory.log[config.mod_set].name then if event.research.name == config.bonus_inventory.log[config.mod_set].name and event.research.level == config.bonus_inventory.log[config.mod_set].level + 1 then
if event.research.level == config.bonus_inventory.log[config.mod_set].level + 1 then -- Add run result to log
-- Add run result to log research_add_log()
research_add_log()
end
if config.pollution_ageing_by_research then
game.map_settings.pollution.ageing = math.min(10, event.research.level / 5)
end
end end
if not (event.by_script) then if not (event.by_script) then
@@ -110,6 +100,10 @@ local function research_notification(event)
if config.bonus_inventory.enabled and config.bonus_inventory.res[event.research.name] then if config.bonus_inventory.enabled and config.bonus_inventory.res[event.research.name] then
event.research.force[config.bonus_inventory.name] = math.min((event.research.level - 1) * config.bonus_inventory.rate, config.bonus_inventory.limit) event.research.force[config.bonus_inventory.name] = math.min((event.research.level - 1) * config.bonus_inventory.rate, config.bonus_inventory.limit)
end end
if config.pollution_ageing_by_research and config.bonus_inventory.res[event.research.name] then
game.map_settings.pollution.ageing = math.min(10, event.research.level / 5)
end
end end
local function research_gui_update() local function research_gui_update()