Page 1 of 1

Oil patch amount: is "amount" documented somewhere?

Posted: Mon Sep 25, 2017 12:30 am
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"?

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

Posted: Thu Sep 28, 2017 8:27 pm
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.

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

Posted: Thu Oct 05, 2017 12:09 pm
by olafthecat
This'll be useful :)