Commit a66d413f authored by neosam's avatar neosam
Browse files

Merge branch 'cheat-magic' into 'master'

No more manually adding new cheats in index.ts

See merge request !56
parents 032d18b7 38d03eaa
......@@ -4,9 +4,9 @@ import "./styles.scss";
(window as any).cheats = {
set_sanity: wasm.cheat_set_sanity,
set_shifts: wasm.cheat_set_shifts,
get_player: wasm.cheat_get_player,
enable: wasm.cheat_enable,
(window as any).cheats = Object.assign(
.filter((f) => f.startsWith("cheat_"))
.map((f) => ({[f.substr(6)]: (wasm as any)[f]}))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment