Jass:AdjustPlayerStateBJ
Aus Mappedia
| Funktion: AdjustPlayerStateBJ | |
|---|---|
| Parameter: | integer player playerstate |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function AdjustPlayerStateBJ takes integer delta, player whichPlayer, playerstate whichPlayerState returns nothing // If the change was positive, apply the difference to the player's // gathered resources property as well. if (delta > 0) then if (whichPlayerState == PLAYER_STATE_RESOURCE_GOLD) then call AdjustPlayerStateSimpleBJ(whichPlayer, PLAYER_STATE_GOLD_GATHERED, delta) elseif (whichPlayerState == PLAYER_STATE_RESOURCE_LUMBER) then call AdjustPlayerStateSimpleBJ(whichPlayer, PLAYER_STATE_LUMBER_GATHERED, delta) endif endif call AdjustPlayerStateSimpleBJ(whichPlayer, whichPlayerState, delta) endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| integer | delta | |
| player | whichPlayer | |
| playerstate | whichPlayerState |
