Skip to content
This repository has been archived by the owner on Nov 21, 2017. It is now read-only.

"Balance" pollution changes for air filtering mod #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,14 @@ for key, prototype_type in pairs(data.raw) do
end
prototype.energy_source.emissions = prototype.energy_source.emissions * multiplier
end
-- Negitive numbers account for air-filtering mod
if prototype.energy_source.emissions and prototype.energy_source.emissions < -0.001 then
local multiplier = 7
if marathon then
multiplier = multiplier / 5
end
prototype.energy_source.emissions = prototype.energy_source.emissions * multiplier
end
end
end
end