Function DebugDifficulty

Line
376
Location
cheats.j
Constant?
no
Type
function
Arguments
nothing
Returns
nothing
376
function DebugDifficulty takes nothing returns nothing
377
    local player         thePlayer = GetTriggerPlayer()
378
    local gamedifficulty theDiff   = GetGameDifficulty()
379
380
    if (theDiff == MAP_DIFFICULTY_EASY) then
381
        call DisplayTextToPlayer(thePlayer, 0, 0, "Easy Difficulty")
382
    elseif (theDiff == MAP_DIFFICULTY_NORMAL) then
383
        call DisplayTextToPlayer(thePlayer, 0, 0, "Normal Difficulty")
384
    elseif (theDiff == MAP_DIFFICULTY_HARD) then
385
        call DisplayTextToPlayer(thePlayer, 0, 0, "Hard Difficulty")
386
    else
387
        call DisplayTextToPlayer(thePlayer, 0, 0, "ERROR!  Unrecognized Difficulty")
388
    endif
389
endfunction