Add resource amount is to add resources to a unit, eg: Gold mine.
native SetTerrainFog takes real a, real b, real c, real d, real e returns nothing
The parameters are uninterpretable (at least from looking at it) but if it is anything like it's similar functions, then it sets fog of the map.