FutureProg functions
environmentrate
Overload 1
environmentrate overload 1
Number environmentrate(Location location, Number resourceId)
Available in
- computer function
- computer program
- standard futureprog
Returns the current environmental regeneration rate per real minute 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
environmentrate overload 2
Number environmentrate(Location location, Text resource)
Available in
- computer function
- computer program
- standard futureprog
Returns the current environmental regeneration rate per real minute 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 |