CorsixTH Lua Documentation

Cheats Class

A holder for all cheats in the game

Declared on: line 26 of Lua/cheats.lua.

Method Index

Member Index

function Cheats:Cheats(hospital)

Cheats System

Parameters:

NameTypeDescription
hospital ? ?

Declared on: line 32 of Lua/cheats.lua.

function Cheats:announceCheat(speech)

Updates the cheated status of the player, with a matching announcement

Parameters:

NameTypeDescription
speech string Optional text for the adviser to say

Declared on: line 73 of Lua/cheats.lua.

function Cheats:cheatEpidemic()

Creates a new contagious patient in the hospital - potentially an epidemic

Declared on: line 132 of Lua/cheats.lua.

function Cheats:cheatRepairAllMachines()

Instantly repairs all of the player's machines (regardless of condition, without decreasing strength)

Declared on: line 223 of Lua/cheats.lua.

function Cheats:cheatShowInfected()

Stub of the old name of the function below

Before an epidemic has been revealed, show/hide the infected mood icons to easily distinguish the infected patients. This will show/hide icons for ALL future epidemics you cannot distinguish between epidemics by disease

Declared on: line 110 of Lua/cheats.lua.

function Cheats:cheatToggleEarthquake()

Toggles the possibility of earthquakes

Declared on: line 154 of Lua/cheats.lua.

function Cheats:cheatToggleEpidemic()

Toggles the possibility of epidemics. Cancel any ongoing or preparing epidemics.

Declared on: line 137 of Lua/cheats.lua.

function Cheats:cheatToggleInvulnerableMachines()

Toggles machine invulnerability (no wear or explosions)

Declared on: line 233 of Lua/cheats.lua.

function Cheats:isCheatActive(name)

Checks if a toggle cheat is activated

Parameters:

NameTypeDescription
name string Name of cheat to check

Declared on: line 339 of Lua/cheats.lua.

function Cheats:noRestOff()

Disable no rest cheat (re-enable staff fatigue, and normal movement)

Declared on: line 271 of Lua/cheats.lua.

function Cheats:noRestOn()

Enables no rest cheat (staff do not tire, fast movement)

Declared on: line 261 of Lua/cheats.lua.

function Cheats:performCheat(num)

Performs a cheat from the cheat_list (menu cheats)

Parameters:

NameTypeDescription
num integer The cheat from the cheat_list called

Declared on: line 63 of Lua/cheats.lua.

function Cheats:processCheatCode(num)

Checks the obfuscated cheat code for a match and executes it

Parameters:

NameTypeDescription
num number The obfuscated cheat value

Declared on: line 346 of Lua/cheats.lua.

function Cheats:queueJumpOff()

Disable queue jump cheat (so that nearly dead patients queue regularly)

Declared on: line 281 of Lua/cheats.lua.

function Cheats:queueJumpOn()

Enable queue jump cheat (for nearly dead patients)

Declared on: line 276 of Lua/cheats.lua.

function Cheats:roujinOff()

Disable Roujin's challenge (spawn rate cheat)

Declared on: line 254 of Lua/cheats.lua.

function Cheats:roujinOn()

Begin toggle-based cheat functions

Enable Roujin's challenge (spawn rate cheat)

Declared on: line 247 of Lua/cheats.lua.

function Cheats:superDoctorOff()

Disable super doctors cheat (immediately return to the normal doctors available in the for hire dialog)

Declared on: line 292 of Lua/cheats.lua.

function Cheats:superDoctorOn()

Enable super doctors cheat (all doctors for hire have maximum skills)

Declared on: line 286 of Lua/cheats.lua.

function Cheats:toggleCheat(name)

Performs a cheat from fax_cheats

Parameters:

NameTypeDescription
name string The cheat called from the list

Declared on: line 361 of Lua/cheats.lua.