summaryrefslogtreecommitdiff
path: root/src/debug/nakamura_debug_menu.c
diff options
context:
space:
mode:
authorKaz <kazbloxmc@gmail.com>2020-06-08 04:12:23 -0400
committerKaz <kazbloxmc@gmail.com>2020-06-08 04:12:23 -0400
commit2ec8ae4bec77ae4c5dac798a44e497d33be5dd7f (patch)
treefc96f4194c338567494e42343c7f0283a5bf4da4 /src/debug/nakamura_debug_menu.c
parent575440fb78a4a8fe0b5e8243a363c66addcfb05b (diff)
Preliminary support for English rev0 debug. Matching but still needs
cleaning up. Rename DEBUG_TRANSLATE to DEBUG_FIX now that we have actual English Debug ROMs. Add Sapphire German "first edition" debug support, now that we have a hash for it. Fix an obvious nonmatching.
Diffstat (limited to 'src/debug/nakamura_debug_menu.c')
-rw-r--r--src/debug/nakamura_debug_menu.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/debug/nakamura_debug_menu.c b/src/debug/nakamura_debug_menu.c
index a56fab2b7..e8f40f08e 100644
--- a/src/debug/nakamura_debug_menu.c
+++ b/src/debug/nakamura_debug_menu.c
@@ -100,7 +100,9 @@ static bool8 TopMenu_HandleJoypad(void)
if (gMain.newKeys & A_BUTTON)
{
MenuFunc func = sNakamuraTopMenuActions[Menu_GetCursorPos()].func;
+#if !(ENGLISH && REVISION == 0)
Menu_DestroyCursor();
+#endif
return func();
}
@@ -739,6 +741,17 @@ static bool8 GiveAllDecorations(void)
// FISHING POINTS (Feebas)
// =======================================================
+#if (ENGLISH && REVISION == 0)
+static const u8 Str_843E58D[] = _(
+ "つりばしょ R119\n"
+ " Y1\n"
+ " Y2\n"
+ " Y3\n"
+ "エンカウントばしょ\n"
+ "\n"
+ "\n"
+ "じぶんのまえ");
+#else
static const u8 Str_843E58D[] = _(
"Fishing location R119\n"
" Y1\n"
@@ -748,6 +761,7 @@ static const u8 Str_843E58D[] = _(
"\n"
"\n"
"front of you");
+#endif
static u16 FishingPoints_CountFishingTilesInMapThird(u8 a0)
{
@@ -974,7 +988,13 @@ static void NakaGenderTest_AdjustLevel(u8 i, s8 dirn)
if (sNakaGenderTestData[i].level < 1)
sNakaGenderTestData[i].level = 100;
SetMonData(gPlayerParty + i, MON_DATA_EXP, gExperienceTables[gBaseStats[sNakaGenderTestData[i].species].growthRate] + sNakaGenderTestData[i].level);
+// TODO: check other revisions
+#if (ENGLISH && REVISION == 0)
+ CalculateMonStats(gPlayerParty + i);
+#else
+ // Same function, but without the Shedninja specific code.
Nakamura_NakaGenderTest_RecalcStats(gPlayerParty + i);
+#endif
}
}