FutureProg functions
environmentcap
Overload 1
environmentcap overload 1
Number environmentcap(Location location, Number resourceId)
Available in
- computer function
- computer program
- standard futureprog
Returns the current environmental maximum for a bound location/resource pair without advancing production, saving or changing scheduling. An unbound output or invalid calculation is a runtime error. Use an uncached policy prog for state-dependent calls.
| Parameter | Type | Description |
|---|---|---|
location |
Location |
The physical cell to inspect |
resourceId |
Number |
The existing magic resource's name or ID |
Overload 2
environmentcap overload 2
Number environmentcap(Location location, Text resource)
Available in
- computer function
- computer program
- standard futureprog
Returns the current environmental maximum for a bound location/resource pair without advancing production, saving or changing scheduling. An unbound output or invalid calculation is a runtime error. Use an uncached policy prog for state-dependent calls.
| Parameter | Type | Description |
|---|---|---|
location |
Location |
The physical cell to inspect |
resource |
Text |
The existing magic resource's name or ID |