diff options
author | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-11-02 02:33:32 +0800 |
---|---|---|
committer | jiangzhengwenjz <jiangzhengwenjzw@qq.com> | 2019-11-09 12:26:53 +0800 |
commit | 5fa2f4f18b11188dce2e3761fd3c2f6a40cdf2c8 (patch) | |
tree | 545ad2113a5c28e88ad057ef0e11e8cae2dde4f3 /src/quest_log_815A008.c | |
parent | 378e85d00ba922933aadcec240747c7e748f8de6 (diff) |
battle_controller_pokedude remaining stuff
Diffstat (limited to 'src/quest_log_815A008.c')
-rw-r--r-- | src/quest_log_815A008.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/src/quest_log_815A008.c b/src/quest_log_815A008.c index 0dd887bd1..2d488a845 100644 --- a/src/quest_log_815A008.c +++ b/src/quest_log_815A008.c @@ -1,5 +1,4 @@ #include "global.h" -#include "battle.h" #include "event_data.h" #include "quest_log.h" #include "fieldmap.h" @@ -7,59 +6,6 @@ #include "metatile_behavior.h" #include "link.h" #include "link_rfu.h" -#include "constants/species.h" -#include "constants/moves.h" -#include "constants/pokemon.h" - -// Don't forget to delete these move the function to battle_controller_pokedude.c -// and headers -// currently I need these for building -struct PokedudeBattlePartyInfo -{ - u8 side; - u8 level; - u16 species; - u16 moves[4]; - u8 nature; - u8 gender; -}; -extern const struct PokedudeBattlePartyInfo *const sPokedudeBattlePartyPointers[]; -void InitPokedudePartyAndOpponent(void) -{ - s32 i, j; - struct Pokemon * mon; - s32 myIdx = 0; - s32 opIdx = 0; - const struct PokedudeBattlePartyInfo * data; - - gBattleTypeFlags = BATTLE_TYPE_POKEDUDE; - ZeroPlayerPartyMons(); - ZeroEnemyPartyMons(); - data = sPokedudeBattlePartyPointers[gSpecialVar_0x8004]; - - i = 0; - do - { - if (data[i].side == 0) - { - mon = &gPlayerParty[myIdx]; - myIdx++; - } - else - { - mon = &gEnemyParty[opIdx]; - opIdx++; - } - CreateMonWithGenderNatureLetter(mon, data[i].species, data[i].level, 0, data[i].gender, data[i].nature, 0); - for (j = 0; j < 4; j++) - { - SetMonMoveSlot(mon, data[i].moves[j], j); - } - i++; - } while (data[i].side != 0xFF); -} - -// file boundary? void sub_815A008(struct QuestLog * questLog) { |