diff --git a/changelog.txt b/changelog.txt index e9165e3..31e7322 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,9 @@ --------------------------------------------------------------------------------------------------- +Version: 2.0.4 +Date: 2024-4-17 + Changes: + - Made sure very early techs are not effected by tech cost multiplier in line with Py Post Processing changes. +--------------------------------------------------------------------------------------------------- Version: 2.0.3 Date: 2023-9-15 Changes: diff --git a/data-updates.lua b/data-updates.lua index 178168d..b71e0c1 100644 --- a/data-updates.lua +++ b/data-updates.lua @@ -158,6 +158,15 @@ RECIPE { } ]]-- +-- make sure very early techs are not effected by the tech cost multiplier +local function prevent_cost_multiplier(name) + local tech = data.raw.technology[name] + if not tech then return end + tech.ignore_tech_cost_multiplier = true +end + +prevent_cost_multiplier('seaweed-mk01') + if register_cache_file ~= nil then register_cache_file({'pycoalprocessing', 'pyfusionenergy', 'pyindustry', 'pyrawores', 'pypetroleumhandling', 'pyalienlife', 'pyhightech', 'pyalternativeenergy', 'PyBlock'}, "__PyBlock__/cached-configs/PyBlock+pyalienlife+pyalternativeenergy+pycoalprocessing+pyfusionenergy+pyhightech+pyindustry+pypetroleumhandling+pyrawores") end