Skip to content

Commit

Permalink
Include Slayer in "All Guns" cheat
Browse files Browse the repository at this point in the history
  • Loading branch information
blaiz committed May 20, 2024
1 parent de3b8ff commit f755846
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/game/inv.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,13 @@ s32 invAddOneIfCantHaveSlayer(s32 index)
{
if (mainGetStageNum());

#ifdef PLATFORM_N64
if (mainGetStageNum() != STAGE_ATTACKSHIP
&& mainGetStageNum() != STAGE_SKEDARRUINS
&& index >= WEAPON_SLAYER) {
index++;
}
#endif

#if (VERSION >= VERSION_JPN_FINAL) && defined(PLATFORM_N64)
if (index >= 26) {
Expand All @@ -299,9 +301,11 @@ s32 currentStageForbidsSlayer(void)
{
bool value = VERSION >= VERSION_JPN_FINAL ? 1 : 0;

#ifdef PLATFORM_N64
if (mainGetStageNum() != STAGE_ATTACKSHIP && mainGetStageNum() != STAGE_SKEDARRUINS) {
value++;
}
#endif

return value;
}
Expand All @@ -316,9 +320,11 @@ bool invCanHaveAllGunsWeapon(s32 weaponnum)
}
#endif

#ifdef PLATFORM_N64
if (weaponnum == WEAPON_SLAYER) {
canhave = false;
}
#endif

// @bug: The stage conditions need an OR. This condition can never pass.
if ((mainGetStageNum() == STAGE_ATTACKSHIP && mainGetStageNum() == STAGE_SKEDARRUINS)
Expand Down

0 comments on commit f755846

Please sign in to comment.