Module CorsixTH.CorsixTH.Lua.cheats

A holder for all cheats in the game

Functions

Cheats:announceCheat (speech) Updates the cheated status of the player, with a matching announcement
Cheats:isCheatActive (name) Checks if a toggle cheat is activated
Cheats:noRestOff () Disable no rest cheat (re-enable staff fatigue, and normal movement)
Cheats:noRestOn () Enables no rest cheat (staff do not tire, fast movement)
Cheats:performCheat (num) Performs a cheat from the cheat_list (menu cheats)
Cheats:processCheatCode (num) Checks the obfuscated cheat code for a match and executes it
Cheats:roujinOff () Disable Roujin's challenge (spawn rate cheat)
Cheats:roujinOn () Enable Roujin's challenge (spawn rate cheat)
Cheats:toggleCheat (name) Performs a cheat from fax_cheats


Functions

Cheats:announceCheat (speech)
Updates the cheated status of the player, with a matching announcement

Parameters:

  • speech (string) Optional text for the adviser to say
Cheats:isCheatActive (name)
Checks if a toggle cheat is activated

Parameters:

  • name (string) Name of cheat to check

Returns:

    Returns true if active
Cheats:noRestOff ()
Disable no rest cheat (re-enable staff fatigue, and normal movement)
Cheats:noRestOn ()
Enables no rest cheat (staff do not tire, fast movement)
Cheats:performCheat (num)
Performs a cheat from the cheat_list (menu cheats)

Parameters:

  • num (integer) The cheat from the cheat_list called

Returns:

    true if cheat was successful, false otherwise
Cheats:processCheatCode (num)
Checks the obfuscated cheat code for a match and executes it

Parameters:

  • num (number) The obfuscated cheat value

Returns:

    Returns name of the cheat executed from the lookup table, or nil
Cheats:roujinOff ()
Disable Roujin's challenge (spawn rate cheat)
Cheats:roujinOn ()
Enable Roujin's challenge (spawn rate cheat)
Cheats:toggleCheat (name)
Performs a cheat from fax_cheats

Parameters:

  • name (string) The cheat called from the list
generated by LDoc TESTING Last updated 2015-01-01 12:00:00