Jass:CustomDefeatReduceDifficultyBJ
Aus Mappedia
| Funktion: CustomDefeatReduceDifficultyBJ | |
|---|---|
| Parameter: | nothing |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CustomDefeatReduceDifficultyBJ takes nothing returns nothing local gamedifficulty diff = GetGameDifficulty() call PauseGame( false ) // Knock the difficulty down, if possible. if (diff == MAP_DIFFICULTY_EASY) then // Sorry, but it doesn't get any easier than this. elseif (diff == MAP_DIFFICULTY_NORMAL) then call SetGameDifficulty(MAP_DIFFICULTY_EASY) elseif (diff == MAP_DIFFICULTY_HARD) then call SetGameDifficulty(MAP_DIFFICULTY_NORMAL) else // Unrecognized difficulty endif call RestartGame( true ) endfunction
