GetResourceAmount
- Parameters
whichUnit unitAdd 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
SetResourceAmountfor edge-case descriptions. Also:SetResourceAmount,AddResourceAmount.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
integer- Source code
native GetResourceAmount takes unit whichUnit returns integer