AddResourceAmount

Parameters
whichUnitunit

Add gold to this gold mine unit.

amountinteger

The 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 SetResourceAmount for 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