Page 1 of 1

LuaEntityPrototype of type = resource: maximum_resource_amount

Posted: Wed Apr 17, 2019 7:57 am
by Yehn
Currently the API supports the following values for entity prototypes of the type resource:

Code: Select all

minimum_resource_amount :: uint [Read-only]
Minimum amount of this resource. Will be nil when used on a non-resource.

normal_resource_amount :: uint [Read-only]
The normal amount for this resource. nil when not a resource.
I would like to request the addition of:

Code: Select all

maximum_resource_amount :: uint [Read-only]
Maximum amount of this resource. Will be nil when used on a non-resource.

Re: LuaEntityPrototype of type = resource: maximum_resource_amount

Posted: Wed Apr 17, 2019 11:19 pm
by Rseding91
There is no such thing as maximum_resource_amount to expose. Only minimum and normal - both of which are exposed.