Function DebugDemo

Line
92
Location
cheats.j
Constant?
no
Type
function
Arguments
nothing
Returns
nothing
92
function DebugDemo takes nothing returns nothing
93
    local player thePlayer = GetTriggerPlayer()
94
    local integer gold = GetRandomInt(750, 1500)
95
    local integer lumber = GetRandomInt(200, 450)
96
97
    call ForForce(bj_FORCE_ALL_PLAYERS, function DebugDemoEnum)
98
    call MultiboardSuppressDisplay(true)
99
    if (GetLocalPlayer() == GetTriggerPlayer()) then
100
        call Cheat("warnings")
101
        call Cheat("fastbuild")
102
        call Cheat("techtree")
103
        call Cheat("research")
104
        call Cheat("food")
105
        call Cheat("mana")
106
        call Cheat("dawn")
107
        call Cheat("gold " + I2S(gold))
108
        call Cheat("lumber " + I2S(lumber))
109
    endif
110
endfunction