mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-14 07:33:44 +01:00
Fixed Battle Frontier tutor move IDs
This commit is contained in:
parent
ed02c4b425
commit
54ee960970
@ -66,52 +66,52 @@ BattleFrontier_Lounge7_EventScript_ChooseNewLeftTutorMove::
|
|||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_Softboiled::
|
BattleFrontier_Lounge7_EventScript_Softboiled::
|
||||||
setvar VAR_0x8008, 16
|
setvar VAR_0x8008, MOVE_SOFT_BOILED
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_SeismicToss::
|
BattleFrontier_Lounge7_EventScript_SeismicToss::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_SEISMIC_TOSS
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_DreamEater::
|
BattleFrontier_Lounge7_EventScript_DreamEater::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_DREAM_EATER
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_MegaPunch::
|
BattleFrontier_Lounge7_EventScript_MegaPunch::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_MEGA_PUNCH
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_MegaKick::
|
BattleFrontier_Lounge7_EventScript_MegaKick::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_MEGA_KICK
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_BodySlam::
|
BattleFrontier_Lounge7_EventScript_BodySlam::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_BODY_SLAM
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_RockSlide::
|
BattleFrontier_Lounge7_EventScript_RockSlide::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_ROCK_SLIDE
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_Counter::
|
BattleFrontier_Lounge7_EventScript_Counter::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_COUNTER
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_ThunderWave::
|
BattleFrontier_Lounge7_EventScript_ThunderWave::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_THUNDER_WAVE
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_SwordsDance::
|
BattleFrontier_Lounge7_EventScript_SwordsDance::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_SWORDS_DANCE
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -180,52 +180,52 @@ BattleFrontier_Lounge7_EventScript_ChooseNewRightTutorMove::
|
|||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_DefenseCurl::
|
BattleFrontier_Lounge7_EventScript_DefenseCurl::
|
||||||
setvar VAR_0x8008, 16
|
setvar VAR_0x8008, MOVE_DEFENSE_CURL
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_Snore::
|
BattleFrontier_Lounge7_EventScript_Snore::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_SNORE
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_MudSlap::
|
BattleFrontier_Lounge7_EventScript_MudSlap::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_MUD_SLAP
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_Swift::
|
BattleFrontier_Lounge7_EventScript_Swift::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_SWIFT
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_IcyWind::
|
BattleFrontier_Lounge7_EventScript_IcyWind::
|
||||||
setvar VAR_0x8008, 24
|
setvar VAR_0x8008, MOVE_ICY_WIND
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_Endure::
|
BattleFrontier_Lounge7_EventScript_Endure::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_ENDURE
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_PsychUp::
|
BattleFrontier_Lounge7_EventScript_PsychUp::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_PSYCH_UP
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_IcePunch::
|
BattleFrontier_Lounge7_EventScript_IcePunch::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_ICE_PUNCH
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_ThunderPunch::
|
BattleFrontier_Lounge7_EventScript_ThunderPunch::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_THUNDER_PUNCH
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
BattleFrontier_Lounge7_EventScript_FirePunch::
|
BattleFrontier_Lounge7_EventScript_FirePunch::
|
||||||
setvar VAR_0x8008, 48
|
setvar VAR_0x8008, MOVE_FIRE_PUNCH
|
||||||
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
goto BattleFrontier_Lounge7_EventScript_ConfirmMoveSelection
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -12,8 +12,6 @@
|
|||||||
#define AILMENT_PKRS 6
|
#define AILMENT_PKRS 6
|
||||||
#define AILMENT_FNT 7
|
#define AILMENT_FNT 7
|
||||||
|
|
||||||
#define TUTOR_MOVE_COUNT 30
|
|
||||||
|
|
||||||
#define PARTY_LAYOUT_SINGLE 0
|
#define PARTY_LAYOUT_SINGLE 0
|
||||||
#define PARTY_LAYOUT_DOUBLE 1
|
#define PARTY_LAYOUT_DOUBLE 1
|
||||||
#define PARTY_LAYOUT_MULTI 2
|
#define PARTY_LAYOUT_MULTI 2
|
||||||
|
@ -2986,40 +2986,12 @@ static void HideFrontierExchangeCornerItemIcon(u16 menu, u16 unused)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static const u16 sBattleFrontier_TutorMoves1[] =
|
|
||||||
{
|
|
||||||
MOVE_SOFT_BOILED,
|
|
||||||
MOVE_SEISMIC_TOSS,
|
|
||||||
MOVE_DREAM_EATER,
|
|
||||||
MOVE_MEGA_PUNCH,
|
|
||||||
MOVE_MEGA_KICK,
|
|
||||||
MOVE_BODY_SLAM,
|
|
||||||
MOVE_ROCK_SLIDE,
|
|
||||||
MOVE_COUNTER,
|
|
||||||
MOVE_THUNDER_WAVE,
|
|
||||||
MOVE_SWORDS_DANCE
|
|
||||||
};
|
|
||||||
|
|
||||||
static const u16 sBattleFrontier_TutorMoves2[] =
|
|
||||||
{
|
|
||||||
MOVE_DEFENSE_CURL,
|
|
||||||
MOVE_SNORE,
|
|
||||||
MOVE_MUD_SLAP,
|
|
||||||
MOVE_SWIFT,
|
|
||||||
MOVE_ICY_WIND,
|
|
||||||
MOVE_ENDURE,
|
|
||||||
MOVE_PSYCH_UP,
|
|
||||||
MOVE_ICE_PUNCH,
|
|
||||||
MOVE_THUNDER_PUNCH,
|
|
||||||
MOVE_FIRE_PUNCH
|
|
||||||
};
|
|
||||||
|
|
||||||
void BufferBattleFrontierTutorMoveName(void)
|
void BufferBattleFrontierTutorMoveName(void)
|
||||||
{
|
{
|
||||||
if (gSpecialVar_0x8005 != 0)
|
if (gSpecialVar_0x8005 != 0)
|
||||||
StringCopy(gStringVar1, gMoveNames[sBattleFrontier_TutorMoves2[gSpecialVar_0x8004]]);
|
StringCopy(gStringVar1, gMoveNames[gSpecialVar_0x8004]);
|
||||||
else
|
else
|
||||||
StringCopy(gStringVar1, gMoveNames[sBattleFrontier_TutorMoves1[gSpecialVar_0x8004]]);
|
StringCopy(gStringVar1, gMoveNames[gSpecialVar_0x8004]);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ShowBattleFrontierTutorWindow(u8 menu, u16 selection)
|
static void ShowBattleFrontierTutorWindow(u8 menu, u16 selection)
|
||||||
@ -3130,26 +3102,26 @@ void GetBattleFrontierTutorMoveIndex(void)
|
|||||||
i = 0;
|
i = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (i == sBattleFrontier_TutorMoves2[moveIndex])
|
if (i == moveIndex)
|
||||||
{
|
{
|
||||||
gSpecialVar_0x8005 = i;
|
gSpecialVar_0x8005 = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
} while (i < TUTOR_MOVE_COUNT);
|
} while (i < MOVES_COUNT);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
i = 0;
|
i = 0;
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
if (i == sBattleFrontier_TutorMoves1[moveIndex])
|
if (i == moveIndex)
|
||||||
{
|
{
|
||||||
gSpecialVar_0x8005 = i;
|
gSpecialVar_0x8005 = i;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
} while (i < TUTOR_MOVE_COUNT);
|
} while (i < MOVES_COUNT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user