Oil patch amount: is "amount" documented somewhere?

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
Jürgen Erhard
Filter Inserter
Filter Inserter
Posts: 298
Joined: Sun Jun 12, 2016 11:29 pm
Contact:

Oil patch amount: is "amount" documented somewhere?

Post by Jürgen Erhard »

Trial and error makes me think that 60000 is the absolute minimum the "amount" value for an oil patch can be. That is, "amount" for depleted patches is max(initial_amount*.20, 60000).

But I can't see where this is even documented. One liquid is 500 "internal thingies"?

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Oil patch amount: is "amount" documented somewhere?

Post by eradicator »

/data/base/prototypes/entity/resources.lua defines type="resource", name="crude-oil", minimum=60000.

"1.0" liquid per second (in-game) should be equivalient to "10" liquid on the code side.
As to the exact relation between current .amount and actual production for infinite resources...i seem to have forgotten that.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

User avatar
olafthecat
Filter Inserter
Filter Inserter
Posts: 476
Joined: Fri Jul 07, 2017 4:37 pm

Re: Oil patch amount: is "amount" documented somewhere?

Post by olafthecat »

This'll be useful :)
Gonna start playing again with 0.16 build.
That's all.

Post Reply

Return to “Modding discussion”