inifinite_depletion_amount small error

User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 231
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

inifinite_depletion_amount small error

Post by Osmo »

https://lua-api.factorio.com/latest/pro ... ion_amount says
Every time an infinite-type resource "ticks" lower it's lowered by that amount.
lower it's lowered
curiosity
Filter Inserter
Filter Inserter
Posts: 728
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: inifinite_depletion_amount small error

Post by curiosity »

Missing comma, yeah.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 231
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: inifinite_depletion_amount small error

Post by Osmo »

curiosity wrote: Thu Jan 15, 2026 4:51 pm Missing comma, yeah.
The bigger problen is that its unclear what is lowered
eugenekay
Filter Inserter
Filter Inserter
Posts: 984
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: inifinite_depletion_amount small error

Post by eugenekay »

From the Example provided on that same page:
{
type = "resource",
name = "crude-oil",
icon = "__base__/graphics/icons/crude-oil.png",
icon_size = 32,
flags = {"placeable-neutral"},
category = "basic-fluid",
order="a-b-a",
infinite = true,
highlight = true,
minimum = 60000,
normal = 300000,
infinite_depletion_amount = 10,
There are two properties described as Must be not 0 when infinite = true. (and thus, related to infinite_depletion_amount): the minimum and the normal. The latter corresponds to the Initial amount that can be observed in the Map Editor.... so it seems like this is reduced by the depletion amount until the value of the former is reached.
01-15-2026, 21-59-30.png
01-15-2026, 21-59-30.png (170.65 KiB) Viewed 295 times
I agree that the API docs could be clearer about the meaning of these values, but they do make sense.
curiosity
Filter Inserter
Filter Inserter
Posts: 728
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: inifinite_depletion_amount small error

Post by curiosity »

Osmo wrote: Thu Jan 15, 2026 11:56 pm The bigger problen is that its unclear what is lowered
The amount of the resource. Seems obvious, but I guess that's just me.
User avatar
Osmo
Fast Inserter
Fast Inserter
Posts: 231
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: inifinite_depletion_amount small error

Post by Osmo »

curiosity wrote: Fri Jan 16, 2026 5:38 am The amount of the resource. Seems obvious, but I guess that's just me.
Yes i figured from using it, just the description is confusing
Bilka
Factorio Staff
Factorio Staff
Posts: 3691
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: inifinite_depletion_amount small error

Post by Bilka »

I've reworded the description for the next doc release.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Resolved Requests”