Jass documentation Database

JASS Documentation Database REFORGED

Results for the query "BlightGoldMineForPlayerBJ" as a "function"

The search keyword must be a single word (no spaces).

Function BlightGoldMineForPlayerBJ

Line: 8090
Location: blizzard.j
Constant? no
Type: function
Arguments: unit goldMine, player whichPlayer
Returns: unit


Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function BlightGoldMineForPlayerBJ takes unit goldMine, player whichPlayer returns unit
  2.     local real    mineX
  3.     local real    mineY
  4.     local integer mineGold
  5.     local unit    newMine
  7.     // Make sure we're replacing a Gold Mine and not some other type of unit.
  8.     if GetUnitTypeId(goldMine) != 'ngol' then
  9.         return null
  10.     endif
  12.     // Save the Gold Mine's properties and remove it.
  13.     set mineX    = GetUnitX(goldMine)
  14.     set mineY    = GetUnitY(goldMine)
  15.     set mineGold = GetResourceAmount(goldMine)
  16.     call RemoveUnit(goldMine)
  18.     // Create a Haunted Gold Mine to replace the Gold Mine.
  19.     set newMine = CreateBlightedGoldmine(whichPlayer, mineX, mineY, bj_UNIT_FACING)
  20.     call SetResourceAmount(newMine, mineGold)
  21.     return newMine
  22. endfunction
"That guy ’s nuts! Grab ’m!" Hmmm... there's no info about this keyword... be the first one in contribute with the keyword BlightGoldMineForPlayerBJ. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.0714 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...