AddResourceAmount
- Parameters
whichUnit unitAdd gold to this gold mine unit.
amount integerThe amount of gold to add to the unit.
- comment
Adds the amount of available gold to a gold mine. The amount can be negative, which is practically the same as 0.
- note
See
SetResourceAmountfor edge-case descriptions. Also:SetResourceAmount,GetResourceAmount.- patch
1.00
- Source
- common.j (raise an issue to discuss on Github or submit a PR)
- return type
nothing- Source code
native AddResourceAmount takes unit whichUnit, integer amount returns nothing