Set GiveBoxMonIntialMoveset_Fast as default (#4470)
* Set GiveBoxMonIntialMoveset_Fast as default * Update pokemon.h removed duplicates
This commit is contained in:
parent
362f08148c
commit
a48d2c9ce2
3 changed files with 2 additions and 27 deletions
|
@ -658,8 +658,6 @@ void SetMonMoveSlot(struct Pokemon *mon, u16 move, u8 slot);
|
|||
void SetBattleMonMoveSlot(struct BattlePokemon *mon, u16 move, u8 slot);
|
||||
void GiveMonInitialMoveset(struct Pokemon *mon);
|
||||
void GiveBoxMonInitialMoveset(struct BoxPokemon *boxMon);
|
||||
void GiveMonInitialMoveset_Fast(struct Pokemon *mon);
|
||||
void GiveBoxMonInitialMoveset_Fast(struct BoxPokemon *boxMon);
|
||||
u16 MonTryLearningNewMove(struct Pokemon *mon, bool8 firstMove);
|
||||
void DeleteFirstMoveAndGiveMoveToMon(struct Pokemon *mon, u16 move);
|
||||
void DeleteFirstMoveAndGiveMoveToBoxMon(struct BoxPokemon *boxMon, u16 move);
|
||||
|
|
|
@ -4102,7 +4102,7 @@ static void DebugAction_PCBag_Fill_PCBoxes_Fast(u8 taskId) //Credit: Sierraffini
|
|||
StringCopy(speciesName, GetSpeciesName(species));
|
||||
SetBoxMonData(&boxMon, MON_DATA_NICKNAME, &speciesName);
|
||||
SetBoxMonData(&boxMon, MON_DATA_SPECIES, &species);
|
||||
GiveBoxMonInitialMoveset_Fast(&boxMon);
|
||||
GiveBoxMonInitialMoveset(&boxMon);
|
||||
gPokemonStoragePtr->boxes[boxId][boxPosition] = boxMon;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1678,30 +1678,7 @@ void GiveMonInitialMoveset(struct Pokemon *mon)
|
|||
GiveBoxMonInitialMoveset(&mon->box);
|
||||
}
|
||||
|
||||
void GiveBoxMonInitialMoveset(struct BoxPokemon *boxMon)
|
||||
{
|
||||
u16 species = GetBoxMonData(boxMon, MON_DATA_SPECIES, NULL);
|
||||
s32 level = GetLevelFromBoxMonExp(boxMon);
|
||||
s32 i;
|
||||
const struct LevelUpMove *learnset = GetSpeciesLevelUpLearnset(species);
|
||||
|
||||
for (i = 0; learnset[i].move != LEVEL_UP_MOVE_END; i++)
|
||||
{
|
||||
if (learnset[i].level > level)
|
||||
break;
|
||||
if (learnset[i].level == 0)
|
||||
continue;
|
||||
if (GiveMoveToBoxMon(boxMon, learnset[i].move) == MON_HAS_MAX_MOVES)
|
||||
DeleteFirstMoveAndGiveMoveToBoxMon(boxMon, learnset[i].move);
|
||||
}
|
||||
}
|
||||
|
||||
void GiveMonInitialMoveset_Fast(struct Pokemon *mon)
|
||||
{
|
||||
GiveBoxMonInitialMoveset_Fast(&mon->box);
|
||||
}
|
||||
|
||||
void GiveBoxMonInitialMoveset_Fast(struct BoxPokemon *boxMon) //Credit: AsparagusEduardo
|
||||
void GiveBoxMonInitialMoveset(struct BoxPokemon *boxMon) //Credit: AsparagusEduardo
|
||||
{
|
||||
u16 species = GetBoxMonData(boxMon, MON_DATA_SPECIES, NULL);
|
||||
s32 level = GetLevelFromBoxMonExp(boxMon);
|
||||
|
|
Loading…
Reference in a new issue