GetResourceAmount
- Parameters
-
whichUnit unit
Add gold to this gold mine unit.
- comment
Returns the amount of available gold in a gold mine. The amount can be negative, which is practically the same as 0.
- note
See
SetResourceAmount
for edge-case descriptions. Also:SetResourceAmount
,AddResourceAmount
.- patch
1.00
- Source
- common.j
- return type
integer
- Source code
native GetResourceAmount takes unit whichUnit returns integer