Pollution Solutions Lite


This makes Factorio more fun by turning pollution and combat into an interconnected system you actively engage with, instead of just tossing down laser turrets and forgetting about both. This minimalist mod stays close to the vanilla experience, adding only what's necessary to accomplish these goals.

Content
1 year, 9 months ago
1.1
1.85K
Combat Enemies Mining Fluids Manufacturing Power

b Toxic Turret kills walls

1 year, 11 months ago

Toxic Turret damage kills walls.

It's pretty close to a 1-shot, which makes them useless.

1 year, 11 months ago
(updated 1 year, 11 months ago)

If you throw this code in data-final-fixes then this fixes this:

for i, name in pairs(data.raw.gate) do
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end

for i, name in pairs(data.raw.wall) do
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end

for i, name in pairs(data.raw["land-mine"]) do
if name.resistances then
table.insert (name.resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
else
name.resistances ={ {
type = "toxic",
decrease = 0,
percent = 100
}}
end
end

if data.raw["fluid-turret"]["blender-turret"] then
table.insert (data.raw["fluid-turret"]["blender-turret"].resistances, {
type = "toxic",
decrease = 0,
percent = 100
})
end

Might also need some hidden optional dependencies to force load order, but this will do 99% of it.

1 year, 11 months ago

I will look at it this weekend, will probably copy fire and/or acid resistances for all entities as a stopgap fix.

1 year, 11 months ago

If you could include combat robots somehow as well that would be lovely :)

1 year, 11 months ago

It should now copy fire resistances into toxic resistances for every entity, that includes combat robots and any modded entity that has fire resistance. I'll probably revisit resistances in the future but this will have to do for now.

This thread has been locked.