Cheats Class
A holder for all cheats in the game
Method Index
- announceCheat(speech)
- cheatDecreasePrices()
- cheatEarthquake()
- cheatEmergency()
- cheatEpidemic()
- cheatIncreasePrices()
- cheatLose()
- cheatMaxReputation()
- cheatMoney()
- cheatMonth()
- cheatPatient()
- cheatRepairAllMachines()
- cheatResearch()
- cheatResetDeathCount()
- cheatShowInfected()
- cheatToggleEarthquake()
- cheatToggleEpidemic()
- cheatToggleInfected()
- cheatToggleInvulnerableMachines()
- cheatVip()
- cheatWin()
- cheatYear()
- isCheatActive(name)
- noRestOff()
- noRestOn()
- performCheat(num)
- processCheatCode(num)
- queueJumpOff()
- queueJumpOn()
- roujinOff()
- roujinOn()
- superDoctorOff()
- superDoctorOn()
- toggleCheat(name)
Member Index
- active_cheats
- cheat_list
- hospital
function Cheats:Cheats(hospital)
Cheats System
Parameters:
| Name | Type | Description |
|---|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| speech | string | Optional text for the adviser to say |
Declared on: line 73 of Lua/cheats.lua.
function Cheats:cheatEarthquake()
Declared on: line 150 of Lua/cheats.lua.
function Cheats:cheatEmergency()
Declared on: line 100 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:cheatLose()
Declared on: line 182 of Lua/cheats.lua.
function Cheats:cheatMoney()
Declared on: line 87 of Lua/cheats.lua.
function Cheats:cheatMonth()
Declared on: line 174 of Lua/cheats.lua.
function Cheats:cheatPatient()
Declared on: line 170 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:cheatResearch()
Declared on: line 91 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:cheatVip()
Declared on: line 166 of Lua/cheats.lua.
function Cheats:cheatWin()
Declared on: line 186 of Lua/cheats.lua.
function Cheats:cheatYear()
Declared on: line 178 of Lua/cheats.lua.
function Cheats:isCheatActive(name)
Checks if a toggle cheat is activated
Parameters:
| Name | Type | Description |
|---|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| 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:
| Name | Type | Description |
|---|---|---|
| name | string | The cheat called from the list |
Declared on: line 361 of Lua/cheats.lua.