• Adds the amount of available gold to a gold mine. The amount can be negative, which is practically the same as 0.

    Parameters

    • whichUnit: Unit<UnitEventMap>

      Add gold to this gold mine unit.

    • amount: number

      The amount of gold to add to the unit.

    Returns void

    Note

    See SetResourceAmount for edge-case descriptions. Also: SetResourceAmount, GetResourceAmount.

Generated using TypeDoc