Skip to content

Commit

Permalink
FATEFUL ENCOUNTER
Browse files Browse the repository at this point in the history
  • Loading branch information
kithr1 committed Mar 26, 2024
1 parent 2f4c29f commit cef5674
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/battle_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,10 +992,13 @@ void ChooseStarter(void)
static void CB2_GiveStarter(void)
{
u16 starterMon;

u16 starterMet = METLOC_FATEFUL_ENCOUNTER;
bool32 isModernFatefulEncounter = TRUE;
*GetVarPointer(VAR_STARTER_MON) = gSpecialVar_Result;
starterMon = GetStarterPokemon(gSpecialVar_Result);
starterMon = GetStarterPokemon(gSpecialVar_Result);
ScriptGiveMon(starterMon, 5, ITEM_NONE, 0, 0, 0);
SetMonData(&gPlayerParty[0], MON_DATA_MET_LOCATION, &starterMet);
SetMonData(&gPlayerParty[0], MON_DATA_MODERN_FATEFUL_ENCOUNTER, &isModernFatefulEncounter);
ResetTasks();
PlayBattleBGM();
SetMainCallback2(CB2_StartFirstBattle);
Expand Down
2 changes: 2 additions & 0 deletions src/pokemon_summary_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -3222,6 +3222,8 @@ static void BufferMonTrainerMemo(void)
{
if (sum->metLevel == 0)
text = (sum->metLocation >= MAPSEC_NONE) ? gText_XNatureHatchedSomewhereAt : gText_XNatureHatchedAtYZ;
else if (sum->metLocation == METLOC_FATEFUL_ENCOUNTER)
text = gText_XNatureFatefulEncounter;
else
text = (sum->metLocation >= MAPSEC_NONE) ? gText_XNatureMetSomewhereAt : gText_XNatureMetAtYZ;
}
Expand Down

0 comments on commit cef5674

Please sign in to comment.