mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
.
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user