mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Adaptive Pollution Ageing (#277)
* Update research.lua * Update research.lua * Update research.lua * Update research.lua
This commit is contained in:
@@ -43,9 +43,13 @@ local function research_notification(event)
|
||||
end
|
||||
|
||||
if is_inf_res then
|
||||
if config.bonus.enabled then
|
||||
if event.research.name == 'mining-productivity-4' and event.research.force.technologies['mining-productivity-4'].level > 4 then
|
||||
event.research.force[config.bonus.name] = base_rate + event.research.force.technologies['mining-productivity-4'].level * config.bonus.rate
|
||||
if event.research.name == 'mining-productivity-4' and event.research.level > 4 then
|
||||
if config.bonus.enabled then
|
||||
event.research.force[config.bonus.name] = base_rate + event.research.level * config.bonus.rate
|
||||
end
|
||||
|
||||
if config.pollution_ageing_by_research then
|
||||
game.map_settings.pollution.ageing = math.min(10, event.research.level / 5)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user