From ecdd17faaafb2c8f6aa61d9643d0113e66b4d501 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 11 Jan 2024 18:47:36 -0800 Subject: [PATCH] DEVELOP: add Skip Goner password --- src/m_cheat.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/m_cheat.c b/src/m_cheat.c index 677e9e610..f6bdda6bf 100644 --- a/src/m_cheat.c +++ b/src/m_cheat.c @@ -199,6 +199,20 @@ static UINT8 cheatf_devmode(void) return 1; } + +static UINT8 cheatf_skipgoner(void) +{ + gamedata->gonerlevel = GDGONER_DONE; + gamedata->finishedtutorialchallenge = true; + M_UpdateUnlockablesAndExtraEmblems(true, true); + + M_ClearMenus(true); + S_StartSound(0, sfx_kc42); + + G_SaveGameData(); + + return 1; +} #endif static cheatseq_t cheat_warp = { @@ -226,6 +240,11 @@ static cheatseq_t cheat_devmode = { NULL, cheatf_devmode, (UINT8[]){ SCRAMBLE('d'), SCRAMBLE('e'), SCRAMBLE('v'), SCRAMBLE('m'), SCRAMBLE('o'), SCRAMBLE('d'), SCRAMBLE('e'), 0xff } }; + +static cheatseq_t cheat_skipgoner = { + NULL, cheatf_skipgoner, + (UINT8[]){ SCRAMBLE('g'), SCRAMBLE('a'), SCRAMBLE('s'), SCRAMBLE('t'), SCRAMBLE('e'), SCRAMBLE('r'), 0xff } +}; #endif cheatseq_t *cheatseqlist[] = @@ -236,6 +255,7 @@ cheatseq_t *cheatseqlist[] = &cheat_savetheframes, #ifdef DEVELOP &cheat_devmode, + &cheat_skipgoner, #endif NULL };