Page 1 of 1

Resource drain tech modifier

Posted: Tue Aug 05, 2025 7:13 pm
by Stargateur
TL;DR
Having a way to improve resource drain of all drills with a tech modifier.
Purpose favor resource drain mechanism instead of infinite mining productivity.
What?
Add resource drain modifier to https://lua-api.factorio.com/latest/types/Modifier.html working as such:

f(0) = 1
f(1) = 0.9
f(10) = 0.5 (like +100% productivity but without the speed)

After 10 you will get less that what would give you productivity bonus but close enough I think.

f(20) = 0.37
formule math resource drain.png
formule math resource drain.png (3.99 KiB) Viewed 598 times
y is the base resource drain of a drill.
x is the modifier.
f(x) would give final resource drain of a drill
92b25f5e-bb56-45da-bce9-5c3ae2b187a0.png
92b25f5e-bb56-45da-bce9-5c3ae2b187a0.png (100.39 KiB) Viewed 598 times
Require resource_drain_rate_percent to be a double type.
Why?
Mining productivity (and all productivity research of space age... but I will skip this part) break the game a little, after enough research like +200% productivity, one miner == 3 miners. While it's very cool to have ore patch last longer, I always feel it was a bit sad to only see few of my drill working in late game. I end up with >+500% productivity and then only few drill are enough to fill my turbo belt. Say otherwise, late game, mining productivity make the size of ore field irrelevant. Also, since you have way less drill working you reduce your energy consumption and your pollution.

The new resource drain mechanism would allow for mostly the same effect but without the insane output of mining productivity. It would be nice to have a tech that improve resource drain of all drills. Cause quality is optional we can't rely only on quality feature to implement this.

This would also make a purpose to put productivity module on drill (since it multiply with rss drain it's would actually be a very nice module on drill).

This also make new oil field relevant since with current mining productivity even an "depleted" oil field can produce tons of oil.

I would like this as modding feature first to try out this way of playing. Also, my number are completely arbitrary and I'm lacking a lot in math science so if you have better formula please advice.

Re: Resource drain tech modifier

Posted: Tue Aug 05, 2025 7:43 pm
by Stargateur
Actually maybe just:
lagrida_latex_editor.png
lagrida_latex_editor.png (2.91 KiB) Viewed 580 times
4f667844-d7c7-4193-90bd-9ac2d93a3435.png
4f667844-d7c7-4193-90bd-9ac2d93a3435.png (90.5 KiB) Viewed 580 times
It should be exactly the same number than current mining productivity. But this doesn't have diminish return the more you upgrade.

Re: Resource drain tech modifier

Posted: Thu Aug 07, 2025 2:11 pm
by MrSmoothieHuman
+1, im all for more types of technology bonus modifiers, and it'd be nice to be able to do more with miners then just productivity.

Re: Resource drain tech modifier

Posted: Mon Aug 18, 2025 7:34 pm
by Asmodian
I’d like to add my support for this idea. Right now, the way the productivity modifier works means that with every +10% step, the cost for the next level always increases. Because of this, you can’t ever reach a truly infinite resource output just by stacking productivity — there will always be a point (even if astronomically high) where you run out of resources before reaching the next level.

A simple fix would be to let the modifier also reduce resource drain. That way modders could build their own growth formulas on top of it. For example:
y = 100% * 0.94^x, where x is the tech level.

Re: Resource drain tech modifier

Posted: Fri Sep 12, 2025 7:03 pm
by Quorken
+1

Communicating this to the player unambiguously might be tricky - if you just say it reduces drain by 10%, they might think 10 levels == 0 drain. You could say it increases lifetime yield by 10%, but that makes it sound just like productivity.

Maybe say it depletes the ore patch 10% slower? So: "+10% Resource Efficiency - Depletes ores 10% slower"