+1
-1
@@ -711,7 +711,7 @@ extern u16 gLastPrintedMoves[MAX_BATTLERS_COUNT];
|
||||
extern u8 gActionsByTurnOrder[MAX_BATTLERS_COUNT];
|
||||
extern u8 gChosenActionByBattler[MAX_BATTLERS_COUNT];
|
||||
extern u8 gBattleTerrain;
|
||||
extern struct UnknownPokemonStruct4 gUnknown_2022B58[3];
|
||||
extern struct UnknownPokemonStruct4 gMultiPartnerParty[3];
|
||||
extern u16 *gUnknown_2022BC0;
|
||||
extern u16 gRandomTurnNumber;
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ struct BattleTowerPokemonTemplate
|
||||
u8 nature;
|
||||
};
|
||||
|
||||
extern const u16 gBattleTowerBannedSpecies[];
|
||||
|
||||
u16 sub_8164FCC(u8, u8);
|
||||
void ClearEReaderTrainer(struct BattleTowerEReaderTrainer *);
|
||||
void ValidateEReaderTrainer(void);
|
||||
|
||||
@@ -1,6 +1,28 @@
|
||||
#ifndef GUARD_CONSTANTS_EASY_CHAT_H
|
||||
#define GUARD_CONSTANTS_EASY_CHAT_H
|
||||
|
||||
#define EASY_CHAT_TYPE_PROFILE 0
|
||||
#define EASY_CHAT_TYPE_BATTLE_START 1
|
||||
#define EASY_CHAT_TYPE_BATTLE_WON 2
|
||||
#define EASY_CHAT_TYPE_BATTLE_LOST 3
|
||||
#define EASY_CHAT_TYPE_MAIL 4
|
||||
#define EASY_CHAT_TYPE_INTERVIEW 5
|
||||
#define EASY_CHAT_TYPE_BARD_SONG 6
|
||||
#define EASY_CHAT_TYPE_FAN_CLUB 7
|
||||
#define EASY_CHAT_TYPE_UNK_8 8
|
||||
#define EASY_CHAT_TYPE_TRENDY_PHRASE 9
|
||||
#define EASY_CHAT_TYPE_GABBY_AND_TY 10
|
||||
#define EASY_CHAT_TYPE_CONTEST_INTERVIEW 11
|
||||
#define EASY_CHAT_TYPE_BATTLE_TOWER_INTERVIEW 12
|
||||
#define EASY_CHAT_TYPE_GOOD_SAYING 13
|
||||
#define EASY_CHAT_TYPE_FAN_QUESTION 14
|
||||
#define EASY_CHAT_TYPE_QUIZ_ANSWER 15
|
||||
#define EASY_CHAT_TYPE_QUIZ_QUESTION 16
|
||||
#define EASY_CHAT_TYPE_QUIZ_SET_QUESTION 17
|
||||
#define EASY_CHAT_TYPE_QUIZ_SET_ANSWER 18
|
||||
#define EASY_CHAT_TYPE_APPRENTICE 19
|
||||
#define EASY_CHAT_TYPE_QUESTIONNAIRE 20
|
||||
|
||||
#define EC_GROUP_POKEMON_2 0x0
|
||||
#define EC_GROUP_TRAINER 0x1
|
||||
#define EC_GROUP_STATUS 0x2
|
||||
|
||||
@@ -80,4 +80,6 @@ enum
|
||||
|
||||
#define NUM_BAG_POCKETS 5
|
||||
|
||||
#define MULTI_PARTY_SIZE PARTY_SIZE / 2
|
||||
|
||||
#endif //GUARD_CONSTANTS_GLOBAL_H
|
||||
|
||||
@@ -0,0 +1,118 @@
|
||||
#ifndef GUARD_CONSTANTS_PARTY_MENU_H
|
||||
#define GUARD_CONSTANTS_PARTY_MENU_H
|
||||
|
||||
#define AILMENT_NONE 0
|
||||
#define AILMENT_PSN 1
|
||||
#define AILMENT_PRZ 2
|
||||
#define AILMENT_SLP 3
|
||||
#define AILMENT_FRZ 4
|
||||
#define AILMENT_BRN 5
|
||||
#define AILMENT_PKRS 6
|
||||
#define AILMENT_FNT 7
|
||||
|
||||
#define TUTOR_MOVE_MEGA_PUNCH 0
|
||||
#define TUTOR_MOVE_SWORDS_DANCE 1
|
||||
#define TUTOR_MOVE_MEGA_KICK 2
|
||||
#define TUTOR_MOVE_BODY_SLAM 3
|
||||
#define TUTOR_MOVE_DOUBLE_EDGE 4
|
||||
#define TUTOR_MOVE_COUNTER 5
|
||||
#define TUTOR_MOVE_SEISMIC_TOSS 6
|
||||
#define TUTOR_MOVE_MIMIC 7
|
||||
#define TUTOR_MOVE_METRONOME 8
|
||||
#define TUTOR_MOVE_SOFT_BOILED 9
|
||||
#define TUTOR_MOVE_DREAM_EATER 10
|
||||
#define TUTOR_MOVE_THUNDER_WAVE 11
|
||||
#define TUTOR_MOVE_EXPLOSION 12
|
||||
#define TUTOR_MOVE_ROCK_SLIDE 13
|
||||
#define TUTOR_MOVE_SUBSTITUTE 14
|
||||
#define TUTOR_MOVE_COUNT 15 // regular tutor move count
|
||||
|
||||
#define TUTOR_MOVE_FRENZY_PLANT 15
|
||||
#define TUTOR_MOVE_BLAST_BURN 16
|
||||
#define TUTOR_MOVE_HYDRO_CANNON 17
|
||||
|
||||
#define PARTY_LAYOUT_SINGLE 0
|
||||
#define PARTY_LAYOUT_DOUBLE 1
|
||||
#define PARTY_LAYOUT_MULTI 2
|
||||
#define PARTY_LAYOUT_MULTI_SHOWCASE 3 // The layout during the screen that appears just before a multi battle
|
||||
#define PARTY_LAYOUT_COUNT 4
|
||||
#define KEEP_PARTY_LAYOUT 0xFF
|
||||
|
||||
#define PARTY_MENU_TYPE_FIELD 0
|
||||
#define PARTY_MENU_TYPE_IN_BATTLE 1
|
||||
#define PARTY_MENU_TYPE_CONTEST 2
|
||||
#define PARTY_MENU_TYPE_CHOOSE_MON 3
|
||||
#define PARTY_MENU_TYPE_CHOOSE_HALF 4 // multi battles, eReader battles, and some battle facilities
|
||||
#define PARTY_MENU_TYPE_MULTI_SHOWCASE 5
|
||||
#define PARTY_MENU_TYPE_DAYCARE 6
|
||||
#define PARTY_MENU_TYPE_MOVE_RELEARNER 7
|
||||
#define PARTY_MENU_TYPE_UNION_ROOM_REGISTER 8 // trading board
|
||||
#define PARTY_MENU_TYPE_UNION_ROOM_TRADE 9 // trading board
|
||||
#define PARTY_MENU_TYPE_SPIN_TRADE 10 // Unused beta for Gen IV's Spin Trade
|
||||
#define PARTY_MENU_TYPE_MINIGAME 11
|
||||
#define PARTY_MENU_TYPE_STORE_PYRAMID_HELD_ITEMS 12
|
||||
|
||||
#define PARTY_ACTION_CHOOSE_MON 0
|
||||
#define PARTY_ACTION_SEND_OUT 1
|
||||
#define PARTY_ACTION_CANT_SWITCH 2
|
||||
#define PARTY_ACTION_USE_ITEM 3
|
||||
#define PARTY_ACTION_ABILITY_PREVENTS 4
|
||||
#define PARTY_ACTION_GIVE_ITEM 5
|
||||
#define PARTY_ACTION_GIVE_PC_ITEM 6 // TODO: rename this one if necessary. Used for quest log.
|
||||
#define PARTY_ACTION_GIVE_MAILBOX_MAIL 7
|
||||
#define PARTY_ACTION_SWITCH 8
|
||||
#define PARTY_ACTION_SWITCHING 9
|
||||
#define PARTY_ACTION_SOFTBOILED 10
|
||||
#define PARTY_ACTION_CHOOSE_AND_CLOSE 11
|
||||
#define PARTY_ACTION_MOVE_TUTOR 12
|
||||
#define PARTY_ACTION_MINIGAME 13
|
||||
#define PARTY_ACTION_REUSABLE_ITEM 14
|
||||
|
||||
// IDs for DisplayPartyMenuStdMessage, to display the message at the bottom of the party menu
|
||||
#define PARTY_MSG_CHOOSE_MON 0
|
||||
#define PARTY_MSG_CHOOSE_MON_OR_CANCEL 1
|
||||
#define PARTY_MSG_CHOOSE_MON_AND_CONFIRM 2
|
||||
#define PARTY_MSG_MOVE_TO_WHERE 3
|
||||
#define PARTY_MSG_TEACH_WHICH_MON 4
|
||||
#define PARTY_MSG_USE_ON_WHICH_MON 5
|
||||
#define PARTY_MSG_GIVE_TO_WHICH_MON 6
|
||||
#define PARTY_MSG_NOTHING_TO_CUT 7
|
||||
#define PARTY_MSG_CANT_SURF_HERE 8
|
||||
#define PARTY_MSG_ALREADY_SURFING 9
|
||||
#define PARTY_MSG_CURRENT_TOO_FAST 10
|
||||
#define PARTY_MSG_ENJOY_CYCLING 11
|
||||
#define PARTY_MSG_ALREADY_IN_USE 12
|
||||
#define PARTY_MSG_CANT_USE_HERE 13
|
||||
#define PARTY_MSG_NO_MON_FOR_BATTLE 14
|
||||
#define PARTY_MSG_CHOOSE_MON_2 15
|
||||
#define PARTY_MSG_NOT_ENOUGH_HP 16
|
||||
#define PARTY_MSG_THREE_MONS_ARE_NEEDED 17
|
||||
#define PARTY_MSG_TWO_MONS_ARE_NEEDED 18
|
||||
#define PARTY_MSG_MONS_CANT_BE_SAME 19
|
||||
#define PARTY_MSG_NO_SAME_HOLD_ITEMS 20
|
||||
#define PARTY_MSG_UNUSED 21
|
||||
#define PARTY_MSG_DO_WHAT_WITH_MON 22
|
||||
#define PARTY_MSG_RESTORE_WHICH_MOVE 23
|
||||
#define PARTY_MSG_BOOST_PP_WHICH_MOVE 24
|
||||
#define PARTY_MSG_DO_WHAT_WITH_ITEM 25
|
||||
#define PARTY_MSG_DO_WHAT_WITH_MAIL 26
|
||||
#define PARTY_MSG_NONE 127
|
||||
|
||||
// IDs for DisplayPartyPokemonDescriptionText, to display a message in the party pokemon's box
|
||||
#define PARTYBOX_DESC_NO_USE 0
|
||||
#define PARTYBOX_DESC_ABLE_3 1
|
||||
#define PARTYBOX_DESC_FIRST 2
|
||||
#define PARTYBOX_DESC_SECOND 3
|
||||
#define PARTYBOX_DESC_THIRD 4
|
||||
#define PARTYBOX_DESC_ABLE 5
|
||||
#define PARTYBOX_DESC_NOT_ABLE 6
|
||||
#define PARTYBOX_DESC_ABLE_2 7
|
||||
#define PARTYBOX_DESC_NOT_ABLE_2 8
|
||||
#define PARTYBOX_DESC_LEARNED 9
|
||||
|
||||
#define SELECTWINDOW_ACTIONS 0
|
||||
#define SELECTWINDOW_ITEM 1
|
||||
#define SELECTWINDOW_MAIL 2
|
||||
#define SELECTWINDOW_MOVES 3
|
||||
|
||||
#endif // GUARD_CONSTANTS_PARTY_MENU_H
|
||||
@@ -0,0 +1,118 @@
|
||||
#ifndef GUARD_CONSTANTS_TRADE_H
|
||||
#define GUARD_CONSTANTS_TRADE_H
|
||||
|
||||
// TODO: document trade.c and trade_scene.c with corresponding macros
|
||||
// and examine if these are correct
|
||||
|
||||
#define TRADE_PLAYER 0
|
||||
#define TRADE_PARTNER 1
|
||||
|
||||
#define LINK_TRADE_TIMEOUT 300
|
||||
|
||||
// In-game Trade IDs
|
||||
#define INGAME_TRADE_SEEDOT 0
|
||||
#define INGAME_TRADE_PLUSLE 1
|
||||
#define INGAME_TRADE_HORSEA 2
|
||||
#define INGAME_TRADE_MEOWTH 3
|
||||
|
||||
// Flag IDs for sending link data
|
||||
#define INITIATE_TRADE 1
|
||||
#define CANCEL_TRADE 2
|
||||
#define WANTS_TO_TRADE 1
|
||||
#define WANTS_TO_CANCEL 2
|
||||
#define READY_FINISH_TRADE 1
|
||||
#define FINISH_TRADE 2
|
||||
|
||||
// Return values for CanTradeSelectedMon and CanSpinTradeMon
|
||||
#define CAN_TRADE_MON 0
|
||||
#define CANT_TRADE_LAST_MON 1
|
||||
#define CANT_TRADE_NATIONAL 2
|
||||
#define CANT_TRADE_EGG_YET 3
|
||||
#define CANT_TRADE_INVALID_MON 4
|
||||
#define CANT_TRADE_EGG_YET2 5
|
||||
|
||||
// Return values for CheckValidityOfTradeMons
|
||||
#define PLAYER_MON_INVALID 0
|
||||
#define BOTH_MONS_VALID 1
|
||||
#define PARTNER_MON_INVALID 2
|
||||
|
||||
// Return values for GetGameProgressForLinkTrade
|
||||
#define TRADE_BOTH_PLAYERS_READY 0
|
||||
#define TRADE_PLAYER_NOT_READY 1
|
||||
#define TRADE_PARTNER_NOT_READY 2
|
||||
|
||||
// Indexes for sTradeActionTexts
|
||||
#define TRADE_TEXT_CANCEL 0
|
||||
#define TRADE_TEXT_CHOOSE_MON 1
|
||||
#define TRADE_TEXT_SUMMARY 2
|
||||
#define TRADE_TEXT_TRADE 3
|
||||
#define TRADE_TEXT_CANCEL_TRADE 4
|
||||
#define TRADE_TEXT_JP_QUIT 5
|
||||
|
||||
// Checked to confirm DrawTradeMenuParty has reached final state
|
||||
#define DRAW_PARTY_FINISH 5
|
||||
|
||||
// Message indexes for sTradeMessages
|
||||
#define TRADE_MSG_STANDBY 0
|
||||
#define TRADE_MSG_CANCELED 1
|
||||
#define TRADE_MSG_ONLY_MON1 2
|
||||
#define TRADE_MSG_ONLY_MON2 3
|
||||
#define TRADE_MSG_WAITING_FOR_FRIEND 4
|
||||
#define TRADE_MSG_FRIEND_WANTS_TO_TRADE 5
|
||||
#define TRADE_MSG_MON_CANT_BE_TRADED 6
|
||||
#define TRADE_MSG_EGG_CANT_BE_TRADED 7
|
||||
#define TRADE_MSG_FRIENDS_MON_CANT_BE_TRADED 8
|
||||
|
||||
// IDs for QueueAction
|
||||
#define QUEUE_SEND_DATA 0
|
||||
#define QUEUE_STANDBY 1
|
||||
#define QUEUE_ONLY_MON1 2
|
||||
#define QUEUE_ONLY_MON2 3
|
||||
#define QUEUE_UNUSED1 4
|
||||
#define QUEUE_UNUSED2 5
|
||||
#define QUEUE_MON_CANT_BE_TRADED 6
|
||||
#define QUEUE_EGG_CANT_BE_TRADED 7
|
||||
#define QUEUE_FRIENDS_MON_CANT_BE_TRADED 8
|
||||
|
||||
#define QUEUE_DELAY_MSG 3
|
||||
#define QUEUE_DELAY_DATA 5
|
||||
|
||||
// IDs for CallTradeMenuFunc
|
||||
#define TRADEMENUFUNC_MAIN_MENU 0
|
||||
#define TRADEMENUFUNC_SELECTED_MON 1
|
||||
#define TRADEMENUFUNC_SHOW_MON_SUMMARY 2
|
||||
#define TRADEMENUFUNC_CONFIRM_OR_CANCEL_TRADE 3
|
||||
#define TRADEMENUFUNC_CANCEL_TRADE_PROMPT 4
|
||||
#define TRADEMENUFUNC_UNUSED_5 5
|
||||
#define TRADEMENUFUNC_BOTH_MONS_SELECTED 6
|
||||
#define TRADEMENUFUNC_CONFIRM_TRADE_PROMPT 7
|
||||
#define TRADEMENUFUNC_REDRAW_MAIN_MENU 8
|
||||
#define TRADEMENUFUNC_LINK_TRADE_FADE_OUT 9
|
||||
#define TRADEMENUFUNC_LINK_TRADE_WAIT_FADE 10
|
||||
#define TRADEMENUFUNC_CANCEL_TRADE_1 11
|
||||
#define TRADEMENUFUNC_CANCEL_TRADE_2 12
|
||||
#define TRADEMENUFUNC_START_LINK_TRADE 13
|
||||
#define TRADEMENUFUNC_DELAY_TRADE_CONFIRM 14
|
||||
#define TRADEMENUFUNC_UNUSED_15 15
|
||||
#define TRADEMENUFUNC_LINK_TRADE_WAIT_QUEUE 16
|
||||
#define TRADEMENUFUNC_PARTNER_MON_INVALID 17
|
||||
#define TRADEMENUFUNC_STANDBY 100
|
||||
|
||||
// Message indexes for sUnionRoomTradeMessages
|
||||
#define UR_TRADE_MSG_NONE 0
|
||||
#define UR_TRADE_MSG_NOT_MON_PARTNER_WANTS 1
|
||||
#define UR_TRADE_MSG_NOT_EGG 2
|
||||
#define UR_TRADE_MSG_MON_CANT_BE_TRADED_1 3
|
||||
#define UR_TRADE_MSG_MON_CANT_BE_TRADED_2 4
|
||||
#define UR_TRADE_MSG_PARTNERS_MON_CANT_BE_TRADED 5
|
||||
#define UR_TRADE_MSG_EGG_CANT_BE_TRADED 6
|
||||
#define UR_TRADE_MSG_PARTNER_CANT_ACCEPT_MON 7
|
||||
#define UR_TRADE_MSG_CANT_TRADE_WITH_PARTNER_1 8
|
||||
#define UR_TRADE_MSG_CANT_TRADE_WITH_PARTNER_2 9
|
||||
|
||||
// Return values for CanRegisterMonForTradingBoard
|
||||
#define CAN_REGISTER_MON 0
|
||||
#define CANT_REGISTER_MON 1
|
||||
#define CANT_REGISTER_EGG 2
|
||||
|
||||
#endif //GUARD_CONSTANTS_TRADE_H
|
||||
@@ -45,5 +45,6 @@ u16 GetDisplayedWordByIndex(u16 index);
|
||||
u16 GetNumDisplayedWords(void);
|
||||
const u8 *GetEasyChatWordGroupName(u8);
|
||||
u8 *CopyEasyChatWordPadded(u8 *, u16, u16);
|
||||
void DoEasyChatScreen(u8 type, u16 *words, MainCallback callback); // TODO: currently in link_rfu.s. further file split needed?
|
||||
|
||||
#endif // GUARD_EASYCHAT_H
|
||||
|
||||
@@ -33,5 +33,7 @@ void sub_805DC04(void);
|
||||
void sub_805DAB0(void);
|
||||
bool32 sub_805DAD0(void);
|
||||
bool32 sub_805DC24(void);
|
||||
bool8 PartyHasMonWithSurf(void);
|
||||
bool8 IsPlayerSurfingNorth(void);
|
||||
|
||||
#endif //GUARD_FIELD_PLAYER_AVATAR_H
|
||||
|
||||
@@ -9,5 +9,6 @@ void sub_80B0244(void);
|
||||
void sub_807E3EC(void);
|
||||
void sub_807F114(void);
|
||||
void sub_807F204(u8 taskId);
|
||||
void sub_807DC00(void);
|
||||
|
||||
#endif // GUARD_FIELD_SCREEN_EFFECT_H
|
||||
|
||||
@@ -13,7 +13,7 @@ void DoCurrentWeather(void);
|
||||
void SetSav1WeatherFromCurrMapHeader(void);
|
||||
void sub_807B0C4(u16 *, u16 *, u32);
|
||||
void PlayRainStoppingSoundEffect(void);
|
||||
bool8 field_weather_is_fade_finished(void);
|
||||
bool8 IsWeatherNotFadingIn(void);
|
||||
void SetWeatherScreenFadeOut(void);
|
||||
void sub_807B070(void);
|
||||
u8 GetCurrentWeather(void);
|
||||
|
||||
+5
-3
@@ -15,8 +15,10 @@ u8 oei_task_add(void);
|
||||
// flash
|
||||
u8 sub_80C9DCC(u8 lightLevel, u8 mapType);
|
||||
u8 sub_80C9D7C(u8 mapType1, u8 mapType2);
|
||||
bool8 SetUpFieldMove_Flash(void);
|
||||
|
||||
// cut
|
||||
bool8 SetUpFieldMove_Cut(void);
|
||||
|
||||
// dig
|
||||
bool8 SetUpFieldMove_Dig(void);
|
||||
@@ -42,9 +44,9 @@ bool8 SetUpFieldMove_Teleport(void);
|
||||
bool8 FldEff_UseTeleport(void);
|
||||
|
||||
// softboiled
|
||||
bool8 hm_prepare_dive_probably(void);
|
||||
void sub_80E56DC(u8 taskId);
|
||||
void sub_80E5724(u8 taskId);
|
||||
bool8 SetUpFieldMove_SoftBoiled(void);
|
||||
void ChooseMonForSoftboiled(u8 taskId);
|
||||
void Task_TryUseSoftboiledOnPartyMon(u8 taskId);
|
||||
|
||||
// sweetscent
|
||||
bool8 SetUpFieldMove_SweetScent(void);
|
||||
|
||||
+1
-21
@@ -206,26 +206,6 @@ struct LinkBattleRecords
|
||||
#include "global.berry.h"
|
||||
#include "pokemon.h"
|
||||
|
||||
struct UnknownSaveBlock2Struct
|
||||
{
|
||||
u8 field_0;
|
||||
u8 field_1;
|
||||
u8 field_2[2];
|
||||
u8 field_4[8];
|
||||
u8 field_C[16];
|
||||
u16 field_1C[6];
|
||||
u16 field_28[6];
|
||||
u8 field_34[176];
|
||||
u8 field_E4;
|
||||
u8 field_E5;
|
||||
u8 field_E6;
|
||||
u8 field_E7;
|
||||
u8 field_E8;
|
||||
u8 field_E9;
|
||||
u8 field_EA;
|
||||
u8 field_EB;
|
||||
}; // sizeof = 0xEC
|
||||
|
||||
struct BattleTowerRecord // record mixing
|
||||
{
|
||||
/*0x00*/ u8 battleTowerLevelType; // 0 = level 50, 1 = level 100
|
||||
@@ -742,7 +722,7 @@ struct SaveBlock1
|
||||
/*0x000C*/ struct WarpData warp1;
|
||||
/*0x0014*/ struct WarpData warp2;
|
||||
/*0x001C*/ struct WarpData lastHealLocation;
|
||||
/*0x0024*/ struct WarpData warp4;
|
||||
/*0x0024*/ struct WarpData escapeWarp;
|
||||
/*0x002C*/ u16 savedMusic;
|
||||
/*0x002E*/ u8 weather;
|
||||
/*0x002F*/ u8 filler_2F;
|
||||
|
||||
@@ -3740,6 +3740,16 @@ extern const u8 gWeatherFog1Tiles[];
|
||||
extern const u32 gBattleAnimFogTilemap[];
|
||||
extern const u16 gUnknown_83C2CE0[];
|
||||
|
||||
// party_menu
|
||||
extern const u32 gPartyMenuPokeball_Gfx[];
|
||||
extern const u32 gPartyMenuPokeball_Pal[];
|
||||
extern const u32 gPartyMenuPokeballSmall_Gfx[];
|
||||
extern const u32 gStatusGfx_Icons[];
|
||||
extern const u32 gStatusPal_Icons[];
|
||||
extern const u32 gPartyMenuBg_Gfx[];
|
||||
extern const u32 gPartyMenuBg_Tilemap[];
|
||||
extern const u32 gPartyMenuBg_Pal[];
|
||||
|
||||
// credits
|
||||
extern const u32 gCreditsPokeballBgGfxTiles[];
|
||||
extern const u32 gCreditsPokeballBgGfxMap[];
|
||||
|
||||
+1
-2
@@ -43,7 +43,6 @@ void ClearItemSlots(struct ItemSlot *itemSlots, u8 b);
|
||||
u8 CountUsedPCItemSlots(void);
|
||||
bool8 CheckPCHasItem(u16 itemId, u16 count);
|
||||
bool8 AddPCItem(u16 itemId, u16 count);
|
||||
void RemovePCItem(u8 index, u16 count);
|
||||
void SwapRegisteredBike(void);
|
||||
const u8 *ItemId_GetName(u16 itemId);
|
||||
u16 ItemId_GetId(u16 itemId);
|
||||
@@ -75,7 +74,7 @@ u16 GetPcItemQuantity(u16 *);
|
||||
void SetBagPocketsPointers(void);
|
||||
|
||||
void ItemPcCompaction(void);
|
||||
void RemoveItemFromPC(u16 itemId, u16 quantity);
|
||||
void RemovePCItem(u16 itemId, u16 quantity);
|
||||
void SortAndCompactBagPocket(struct BagPocket * pocket);
|
||||
u8 CountItemsInPC(void);
|
||||
void ApplyNewEncryptionKeyToBagItems_(u32 newKey);
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ extern u16 gSpecialVar_ItemId;
|
||||
// Exported ROM declarations
|
||||
void sub_81AAC50(void);
|
||||
void sub_81AAC70(void);
|
||||
void sub_8108CF0(void);
|
||||
void CB2_SetUpReshowBattleScreenAfterMenu(void);
|
||||
void sub_81089BC(void);
|
||||
void sub_810B108(u8);
|
||||
void CB2_BagMenuFromStartMenu(void);
|
||||
@@ -39,6 +39,6 @@ void sub_8107ECC(void);
|
||||
void sub_810AF74(void);
|
||||
void sub_8108DC8(u8 pocketId);
|
||||
void sub_81089F4(u8 pocketId);
|
||||
void sub_8107DB4(u8 menuType, u8 pocket, MainCallback callback);
|
||||
void GoToBagMenu(u8 menuType, u8 pocket, MainCallback callback);
|
||||
|
||||
#endif //GUARD_ITEM_MENU_H
|
||||
|
||||
@@ -40,5 +40,6 @@ void ItemUseInBattle_EnigmaBerry(u8 taskId);
|
||||
void ItemUseOutOfBattle_Itemfinder(u8 taskId);
|
||||
void sub_80A1C44(u8 taskId);
|
||||
u8 CanUseEscapeRopeOnCurrMap(void);
|
||||
u8 CheckIfItemIsTMHMOrEvolutionStone(u16 itemId);
|
||||
|
||||
#endif //GUARD_ITEM_USE_H
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#ifndef GUARD_LINK_RFU_H
|
||||
#define GUARD_LINK_RFU_H
|
||||
|
||||
#include "global.h"
|
||||
#include "librfu.h"
|
||||
|
||||
struct Padded_U8
|
||||
{
|
||||
u8 value;
|
||||
@@ -42,6 +45,7 @@ void sub_80F8DC0(void);
|
||||
void sub_80FBB20(void);
|
||||
bool8 sub_80FA484(bool32 a0);
|
||||
void var_800D_set_xB(void);
|
||||
struct UnkLinkRfuStruct_02022B14 *sub_80F9800(void);
|
||||
|
||||
#include "mevent_server.h"
|
||||
extern const struct mevent_server_cmd gMEventSrvScript_OtherTrainerCanceled[];
|
||||
|
||||
+6
-6
@@ -53,8 +53,8 @@ struct ListMenuTemplate
|
||||
struct ListMenu
|
||||
{
|
||||
struct ListMenuTemplate template;
|
||||
u16 scrollOffset;
|
||||
u16 selectedRow;
|
||||
u16 cursorPos;
|
||||
u16 itemsAbove;
|
||||
u8 unk_1C;
|
||||
u8 unk_1D;
|
||||
u8 taskId;
|
||||
@@ -73,12 +73,12 @@ struct ListMenuWindowRect
|
||||
extern struct ListMenuTemplate gMultiuseListMenuTemplate;
|
||||
|
||||
s32 DoMysteryGiftListMenu(const struct WindowTemplate *windowTemplate, const struct ListMenuTemplate *listMenuTemplate, u8 arg2, u16 tileNum, u16 palNum);
|
||||
u8 ListMenuInit(struct ListMenuTemplate *listMenuTemplate, u16 scrollOffset, u16 selectedRow);
|
||||
u8 ListMenuInitInRect(struct ListMenuTemplate *listMenuTemplate, struct ListMenuWindowRect *rect, u16 scrollOffset, u16 selectedRow);
|
||||
u8 ListMenuInit(struct ListMenuTemplate *listMenuTemplate, u16 cursorPos, u16 itemsAbove);
|
||||
u8 ListMenuInitInRect(struct ListMenuTemplate *listMenuTemplate, struct ListMenuWindowRect *rect, u16 cursorPos, u16 itemsAbove);
|
||||
s32 ListMenu_ProcessInput(u8 listTaskId);
|
||||
void DestroyListMenuTask(u8 listTaskId, u16 *scrollOffset, u16 *selectedRow);
|
||||
void DestroyListMenuTask(u8 listTaskId, u16 *cursorPos, u16 *itemsAbove);
|
||||
void RedrawListMenu(u8 listTaskId);
|
||||
void ListMenuGetScrollAndRow(u8 listTaskId, u16 *scrollOffset, u16 *selectedRow);
|
||||
void ListMenuGetScrollAndRow(u8 listTaskId, u16 *cursorPos, u16 *itemsAbove);
|
||||
u16 ListMenuGetYCoordForPrintingArrowCursor(u8 listTaskId);
|
||||
void ListMenuOverrideSetColors(u8 cursorPal, u8 fillValue, u8 cursorShadowPal);
|
||||
void ListMenuDefaultCursorMoveFunc(s32 itemIndex, bool8 onInit, struct ListMenu *list);
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include "task.h"
|
||||
#include "window.h"
|
||||
|
||||
#define MENU_L_PRESSED 1
|
||||
#define MENU_R_PRESSED 2
|
||||
|
||||
struct YesNoFuncTable
|
||||
{
|
||||
TaskFunc yesFunc;
|
||||
@@ -22,9 +25,9 @@ bool8 AdjustQuantityAccordingToDPadInput(s16 *arg0, u16 arg1);
|
||||
void DisplayMessageAndContinueTask(u8 taskId, u8 windowId, u16 tileNum, u8 paletteNum, u8 fontId, u8 textSpeed, const u8 *string, void *taskFunc);
|
||||
void CreateYesNoMenuWithCallbacks(u8 taskId, const struct WindowTemplate *template, u8 fontId, u8 left, u8 top, u16 tileStart, u8 palette, const struct YesNoFuncTable *yesNo);
|
||||
u8 GetLRKeysState(void);
|
||||
u8 sub_80BF66C(void);
|
||||
u8 GetLRKeysPressedAndHeld(void);
|
||||
bool8 itemid_link_can_give_berry(u16 itemId);
|
||||
bool8 itemid_80BF6D8_mail_related(u16 itemId);
|
||||
void ClearVramOamPltt(void);
|
||||
void ResetVramOamAndBgCntRegs(void);
|
||||
|
||||
#endif //GUARD_MENU_HELPERS_H
|
||||
|
||||
@@ -15,8 +15,8 @@ void *DecompressAndCopyTileDataToVram2(u8 bgId, const void *src, u32 size, u16 o
|
||||
void DecompressAndLoadBgGfxUsingHeap(u8 bgId, const void *src, u32 size, u16 offset, u8 mode);
|
||||
void DecompressAndLoadBgGfxUsingHeap2(u8 bgId, const void *src, u32 size, u16 offset, u8 mode);
|
||||
void * MallocAndDecompress(const void * src, u32 * size);
|
||||
void SetBgRectPal(u8 bgId, u8 left, u8 top, u8 width, u8 height, u8 palette);
|
||||
void CopyRectIntoAltRect(u8 bgId, u16 *dest, u8 left, u8 top, u8 width, u8 height);
|
||||
void SetBgTilemapPalette(u8 bgId, u8 left, u8 top, u8 width, u8 height, u8 palette);
|
||||
void CopyToBufferFromBgTilemap(u8 bgId, u16 *dest, u8 left, u8 top, u8 width, u8 height);
|
||||
void ResetBgPositions(void);
|
||||
void InitStandardTextBoxWindows(void);
|
||||
void FreeAllOverworldWindowBuffers(void);
|
||||
|
||||
+2
-2
@@ -72,7 +72,7 @@ void Overworld_ChangeMusicTo(u16);
|
||||
bool32 IsUpdateLinkStateCBActive(void);
|
||||
|
||||
void strange_npc_table_clear(void);
|
||||
const struct MapHeader *get_mapheader_by_bank_and_number(u16, u16);
|
||||
const struct MapHeader *Overworld_GetMapHeaderByGroupAndId(u16, u16);
|
||||
void FieldObjectMoveDestCoords(struct MapObject *, u32, s16 *, s16 *);
|
||||
void sub_8086230(void);
|
||||
void CB2_ReturnToField(void);
|
||||
@@ -140,7 +140,7 @@ bool32 Overworld_DoScrollSceneForCredits(u8 *, const struct CreditsOverworldCmd
|
||||
|
||||
bool32 sub_8058318(void);
|
||||
|
||||
void CB2_ReturnToStartMenu(void);
|
||||
void CB2_ReturnToFieldWithOpenMenu(void);
|
||||
void CB2_WhiteOut(void);
|
||||
void c2_8056854(void);
|
||||
void sub_8054F38(u32 newKey);
|
||||
|
||||
+71
-78
@@ -3,92 +3,85 @@
|
||||
|
||||
#include "main.h"
|
||||
#include "task.h"
|
||||
#include "constants/party_menu.h"
|
||||
|
||||
enum {
|
||||
AILMENT_NONE,
|
||||
AILMENT_PSN,
|
||||
AILMENT_PRZ,
|
||||
AILMENT_SLP,
|
||||
AILMENT_FRZ,
|
||||
AILMENT_BRN,
|
||||
AILMENT_PKRS,
|
||||
AILMENT_FNT
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
PARTY_CHOOSE_MON,
|
||||
PARTY_MUST_CHOOSE_MON,
|
||||
PARTY_CANT_SWITCH,
|
||||
PARTY_USE_ITEM_ON,
|
||||
PARTY_ABILITY_PREVENTS,
|
||||
PARTY_GIVE_ITEM,
|
||||
};
|
||||
|
||||
struct Struct203B0A0
|
||||
struct PartyMenu
|
||||
{
|
||||
MainCallback exitCallback;
|
||||
TaskFunc unk4;
|
||||
u8 unk8_0:4;
|
||||
u8 mode:2;
|
||||
u8 unk8_2:2;
|
||||
s8 unk9;
|
||||
s8 unkA;
|
||||
u8 unkB;
|
||||
u16 unkC;
|
||||
s16 unkE;
|
||||
s16 unk10;
|
||||
TaskFunc task;
|
||||
u8 menuType:4;
|
||||
u8 layout:2;
|
||||
u8 unk_8_6:2;
|
||||
s8 slotId;
|
||||
s8 slotId2;
|
||||
u8 action;
|
||||
u16 bagItem;
|
||||
s16 data1; // used variously as a moveId, counter, moveSlotId, or cursorPos
|
||||
s16 learnMoveState;
|
||||
};
|
||||
|
||||
extern struct Struct203B0A0 gUnknown_203B0A0;
|
||||
extern u8 gUnknown_203B0C0;
|
||||
extern u8 gUnknown_203B0C1;
|
||||
extern u8 gUnknown_203B0DC[3];
|
||||
extern void (*gUnknown_3005E98)(u8 taskId, TaskFunc func);
|
||||
extern struct PartyMenu gPartyMenu;
|
||||
extern bool8 gPartyMenuUseExitCallback;
|
||||
extern u8 gSelectedMonPartyId;
|
||||
extern MainCallback gPostMenuFieldCallback;
|
||||
extern u8 gSelectedOrderFromParty[3];
|
||||
extern u8 gBattlePartyCurrentOrder[PARTY_SIZE / 2];
|
||||
|
||||
bool8 FieldCallback_PrepareFadeInFromMenu(void);
|
||||
bool8 MonKnowsMove(struct Pokemon *, u16);
|
||||
void sub_81B58A8(void);
|
||||
void DoWallyTutorialBagMenu(void);
|
||||
u8 pokemon_ailments_get_primary(u32 status);
|
||||
u16 ItemIdToBattleMoveId(u16 itemId);
|
||||
void sub_8125B40(u8 taskId, TaskFunc func);
|
||||
void sub_8124C8C(void);
|
||||
void sub_8126EDC(void);
|
||||
void c2_8123744(void);
|
||||
u8 GetCursorSelectionMonId(void);
|
||||
void sub_8128370(void);
|
||||
void sub_811F818(u8 monId, u8 a1);
|
||||
void sub_8121D0C(u8);
|
||||
void sub_811FB28(u8 taskId);
|
||||
void sub_8120760(u8 taskId, u8 a1, s8 a2, s16 amount, TaskFunc followupFunc);
|
||||
void GetMonNickname(const struct Pokemon * mon, u8 * dest);
|
||||
void sub_81202F8(const u8 * src, u8 a1);
|
||||
bool8 sub_8120370(void);
|
||||
void PartyMenuInit(u8 a, u8 b, u8 c, u8 d, u8 messageId, TaskFunc task, MainCallback callback);
|
||||
void sub_81252D0(u8 taskId, TaskFunc followUpFunc);
|
||||
void ItemUseCB_PpRestore(u8 taskId, TaskFunc followUpFunc);
|
||||
void dp05_pp_up(u8 taskId, TaskFunc followUpFunc);
|
||||
void dp05_rare_candy(u8 taskId, TaskFunc followUpFunc);
|
||||
void sub_8126B60(u8 taskId, TaskFunc followUpFunc);
|
||||
void sub_8126894(u8 taskId, TaskFunc followUpFunc);
|
||||
void sub_81279E0(void);
|
||||
void ItemUseCB_Medicine(u8 taskId, TaskFunc followUpFunc);
|
||||
u8 GetItemEffectType(u16 itemId);
|
||||
u8 pokemon_order_func(u8);
|
||||
void sub_8127CAC(void);
|
||||
void sub_8127DA8(u8 battlerId, u8 multiplayerFlag);
|
||||
void OpenPartyMenuInBattle(u8 arg);
|
||||
void sub_8127EC4(u8 battlerId, u8 unk, u8 arrayIndex);
|
||||
extern void (*gItemUseCB)(u8, TaskFunc);
|
||||
|
||||
void InitPartyMenu(u8 menuType, u8 layout, u8 partyAction, bool8 keepCursorPos, u8 messageId, TaskFunc task, MainCallback callback);
|
||||
void AnimatePartySlot(u8 slot, u8 animNum);
|
||||
bool8 IsMultiBattle(void);
|
||||
void sub_8126EDC(void);
|
||||
void sub_812256C(u8 *partyCount, u8 (*icons)[6], u8 side);
|
||||
void PartyMenuInit_FromPlayerPc(void);
|
||||
void CB2_PartyMenuFromStartMenu(void);
|
||||
void sub_8128198(void);
|
||||
void sub_8127FF4(u8 slot, u8 slot2);
|
||||
u8 GetCursorSelectionMonId(void);
|
||||
u8 GetPartyMenuType(void);
|
||||
void Task_HandleChooseMonInput(u8 taskId);
|
||||
u8 *GetMonNickname(struct Pokemon *mon, u8 *dest);
|
||||
u8 DisplayPartyMenuMessage(const u8 *str, bool8 keepOpen);
|
||||
bool8 IsPartyMenuTextPrinterActive(void);
|
||||
void PartyMenuModifyHP(u8 taskId, u8 slot, s8 hpIncrement, s16 hpDifference, TaskFunc task);
|
||||
u8 GetAilmentFromStatus(u32 status);
|
||||
u8 GetMonAilment(struct Pokemon *mon);
|
||||
void DisplayPartyMenuStdMessage(u32 stringId);
|
||||
void LoadHeldItemIcons(void);
|
||||
void sub_8127968(void);
|
||||
void DrawHeldItemIconsForTrade(u8 *partyCounts, u8 *partySpriteIds, u8 whichParty);
|
||||
void SpriteCB_BounceConfirmCancelButton(u8 spriteId, u8 spriteId2, u8 animNum);
|
||||
void CB2_SelectBagItemToGive(void);
|
||||
void CB2_GiveHoldItem(void);
|
||||
bool8 FieldCallback_PrepareFadeInFromMenu(void);
|
||||
void CB2_ReturnToPartyMenuFromFlyMap(void);
|
||||
void sub_8124C1C(const u8 *healLocCtrlData);
|
||||
void CB2_ShowPartyMenuForItemUse(void);
|
||||
void ItemUseCB_Medicine(u8 taskId, TaskFunc func);
|
||||
void ItemUseCB_MedicineStep(u8 taskId, TaskFunc func);
|
||||
void ItemUseCB_PPRecovery(u8 taskId, UNUSED TaskFunc func);
|
||||
void ItemUseCB_PPUp(u8 taskId, UNUSED TaskFunc func);
|
||||
u16 ItemIdToBattleMoveId(u16 item);
|
||||
bool8 IsMoveHm(u16 move);
|
||||
bool8 MonKnowsMove(struct Pokemon *mon, u16 move);
|
||||
void ItemUseCB_TMHM(u8 taskId, UNUSED TaskFunc func);
|
||||
void ItemUseCB_RareCandy(u8 taskId, TaskFunc func);
|
||||
void ItemUseCB_SacredAsh(u8 taskId, UNUSED TaskFunc func);
|
||||
void ItemUseCB_EvolutionStone(u8 taskId, TaskFunc func);
|
||||
u8 GetItemEffectType(u16 item);
|
||||
void CB2_PartyMenuFromStartMenu(void);
|
||||
void CB2_ChooseMonToGiveItem(void);
|
||||
void ChooseMonToGiveMailFromMailbox(void);
|
||||
void InitChooseHalfPartyForBattle(u8 a1);
|
||||
void ClearSelectedPartyOrder(void);
|
||||
void sub_81277F4(u8 menuType, MainCallback callback);
|
||||
void ChooseMonForMoveTutor(void);
|
||||
void ChooseMonForWirelessMinigame(void);
|
||||
void OpenPartyMenuInTutorialBattle(u8 partyAction);
|
||||
void OpenPartyMenuInBattle(void);
|
||||
void ChooseMonForInBattleItem(void);
|
||||
void sub_81279E0(void);
|
||||
void BufferBattlePartyCurrentOrder(void);
|
||||
void BufferBattlePartyCurrentOrderBySide(u8 battlerId, u8 flankId);
|
||||
void SwitchPartyOrderLinkMulti(u8 battlerId, u8 slot, u8 slot2);
|
||||
void SwitchPartyMonSlots(u8 slot, u8 slot2);
|
||||
u8 GetPartyIdFromBattlePartyId(u8 battlePartyId);
|
||||
void ShowPartyMenuToShowcaseMultiBattleParty(void);
|
||||
void ChooseMonForDaycare(void);
|
||||
void ChoosePartyMonByMenuType(u8 menuType);
|
||||
|
||||
#endif // GUARD_PARTY_MENU_H
|
||||
|
||||
+3
-2
@@ -8,8 +8,8 @@
|
||||
|
||||
struct PlayerPCItemPageStruct
|
||||
{
|
||||
u16 selectedRow;
|
||||
u16 scrollOffset;
|
||||
u16 cursorPos;
|
||||
u16 itemsAbove;
|
||||
u8 pageItems;
|
||||
u8 count;
|
||||
u8 filler_6[3];
|
||||
@@ -25,5 +25,6 @@ extern struct PlayerPCItemPageStruct gPlayerPcMenuManager;
|
||||
|
||||
void sub_816B060(u8 taskId);
|
||||
void NewGameInitPCItems(void);
|
||||
void Mailbox_ReturnToMailListAfterDeposit(void);
|
||||
|
||||
#endif //GUARD_PLAYER_PC_H
|
||||
|
||||
+2
-2
@@ -582,7 +582,7 @@ void RemoveMonPPBonus(struct Pokemon *mon, u8 moveIndex);
|
||||
void RemoveBattleMonPPBonus(struct BattlePokemon *mon, u8 moveIndex);
|
||||
bool8 ExecuteTableBasedItemEffect(struct Pokemon *mon, u16 item, u8 partyIndex, u8 moveIndex);
|
||||
bool8 PokemonUseItemEffects(struct Pokemon *mon, u16 item, u8 partyIndex, u8 moveIndex, u8 e);
|
||||
bool8 PokemonUseItemEffects2(struct Pokemon *mon, u16 item, u8 partyIndex, u8 moveIndex);
|
||||
bool8 PokemonItemUseNoEffect(struct Pokemon *mon, u16 item, u8 partyIndex, u8 moveIndex);
|
||||
u8 GetItemEffectParamOffset(u16 itemId, u8 effectByte, u8 effectBit);
|
||||
const u8 *Battle_PrintStatBoosterEffectMessage(u16 itemId);
|
||||
u8 GetNature(struct Pokemon *mon);
|
||||
@@ -593,7 +593,7 @@ u16 HoennToNationalOrder(u16 hoennNum);
|
||||
u16 SpeciesToCryId(u16 species);
|
||||
void DrawSpindaSpots(u16 species, u32 personality, u8 *dest, u8 a4);
|
||||
void EvolutionRenameMon(struct Pokemon *mon, u16 oldSpecies, u16 newSpecies);
|
||||
bool8 sub_80435E0(void);
|
||||
bool8 GetPlayerFlankId(void);
|
||||
bool16 GetLinkTrainerFlankId(u8 linkPlayerId);
|
||||
s32 GetBattlerMultiplayerId(u16 a1);
|
||||
u8 GetTrainerEncounterMusicId(u16 trainer);
|
||||
|
||||
@@ -22,6 +22,6 @@ u8 CreateMonIcon(u16 species, SpriteCallback callback, s16 x, s16 y, u8 subprior
|
||||
u8 UpdateMonIconFrame(struct Sprite * sprite);
|
||||
void LoadMonIconPalette(u16 iconId);
|
||||
void FreeMonIconPalette(u16 iconId);
|
||||
void MonIcon_SetAnim(struct Sprite * sprite, u8 animNum);
|
||||
void SetPartyHPBarSprite(struct Sprite * sprite, u8 animNum);
|
||||
|
||||
#endif // GUARD_POKEMON_ICON_H
|
||||
|
||||
@@ -4,5 +4,6 @@
|
||||
#include "main.h"
|
||||
|
||||
void ResetPokeJumpResults(void);
|
||||
bool32 IsSpeciesAllowedInPokemonJump(u16 species);
|
||||
|
||||
#endif // GUARD_POKEMON_JUMP_H
|
||||
|
||||
@@ -5,8 +5,12 @@
|
||||
|
||||
void sub_811E5B8(u16, u16, u16, u16, u16, u16);
|
||||
bool8 sub_811E680(void);
|
||||
void GetMonLevelUpWindowStats(struct Pokemon *mon, u16 *currStats);
|
||||
void BufferMonStatsToTaskData(struct Pokemon *mon, u16 *currStats);
|
||||
void DrawLevelUpWindowPg1(u16 windowId, u16 *statsBefore, u16 *statsAfter, u8 bgClr, u8 fgClr, u8 shadowClr);
|
||||
void DrawLevelUpWindowPg2(u16 windowId, u16 *currStats, u8 bgClr, u8 fgClr, u8 shadowClr);
|
||||
void sub_811C540(u8 slotId, u16 itemId, MainCallback callback);
|
||||
void sub_811C5AC(u8 slotId, u16 itemId, MainCallback callback);
|
||||
u32 sub_811D178(void);
|
||||
void sub_811C568(u8 slotId, u16 itemId, u16 moveId, MainCallback callback);
|
||||
|
||||
#endif // GUARD_POKEMON_SPECIAL_ANIM_H
|
||||
|
||||
@@ -32,7 +32,7 @@ enum PokemonSummaryScreenPage
|
||||
PSS_PAGE_CONTEST_MOVES,
|
||||
};
|
||||
|
||||
s32 sub_8138B20(void);
|
||||
s32 GetLastViewedMonIndex(void);
|
||||
void ShowPokemonSummaryScreen(struct Pokemon * party, u8 cursorPos, u8 lastIdx, void (*callback)(void), u8 a4);
|
||||
|
||||
#endif // GUARD_POKEMON_SUMMARY_SCREEN_H
|
||||
|
||||
+1
-2
@@ -47,7 +47,6 @@ void sub_81139BC(void);
|
||||
void *QuestLogGetFlagOrVarPtr(bool8 isFlag, u16 idx);
|
||||
void QuestLogSetFlagOrVar(bool8 isFlag, u16 idx, u16 value);
|
||||
void sub_8110840(void *oldSave);
|
||||
|
||||
extern u8 gUnknown_203ADFA;
|
||||
void sub_8112F18(u8 windowId);
|
||||
|
||||
#endif //GUARD_QUEST_LOG_H
|
||||
|
||||
@@ -94,7 +94,8 @@ void CreateRegionMapPlayerIcon(u16 x, u16 y);
|
||||
void CreateRegionMapCursor(u16 tileTag, u16 paletteTag);
|
||||
u8 *GetMapName(u8 *, u16, u16);
|
||||
bool32 sub_8124668(u8 mapSecId);
|
||||
void sub_80C4DF8(u8 *, u8);
|
||||
void GetMapNameGeneric(u8 *, u8);
|
||||
void sub_80BFF50(u8 a0, void (*a1)(void));
|
||||
void MCB2_FlyMap(void);
|
||||
|
||||
#endif //GUARD_REGION_MAP_H
|
||||
|
||||
+139
-5
@@ -181,7 +181,7 @@ extern const u8 gUnknown_8416644[];
|
||||
extern const u8 gUnknown_841665C[];
|
||||
extern const u8 gUnknown_8416690[];
|
||||
extern const u8 gUnknown_84166A7[];
|
||||
extern const u8 gUnknown_84169DC[];
|
||||
extern const u8 gText_WontHaveEffect[];
|
||||
extern const u8 gUnknown_841623D[];
|
||||
extern const u8 gUnknown_84162BD[];
|
||||
extern const u8 gUnknown_841D148[];
|
||||
@@ -265,6 +265,140 @@ extern const u8 gUnknown_81C6787[];
|
||||
extern const u8 gUnknown_81C684B[];
|
||||
extern const u8 gUnknown_81C686C[];
|
||||
|
||||
// party_menu
|
||||
extern const u8 gText_ChoosePokemon[];
|
||||
extern const u8 gText_ChoosePokemonCancel[];
|
||||
extern const u8 gText_ChoosePokemonConfirm[];
|
||||
extern const u8 gText_MoveToWhere[];
|
||||
extern const u8 gText_TeachWhichPokemon[];
|
||||
extern const u8 gText_UseOnWhichPokemon[];
|
||||
extern const u8 gText_GiveToWhichPokemon[];
|
||||
extern const u8 gText_NothingToCut[];
|
||||
extern const u8 gText_CantSurfHere[];
|
||||
extern const u8 gText_AlreadySurfing[];
|
||||
extern const u8 gText_CurrentIsTooFast[];
|
||||
extern const u8 gText_EnjoyCycling[];
|
||||
extern const u8 gText_InUseAlready_PM[];
|
||||
extern const u8 gText_CantUseHere[];
|
||||
extern const u8 gText_NoPokemonForBattle[];
|
||||
extern const u8 gText_ChoosePokemon2[];
|
||||
extern const u8 gText_NotEnoughHp[];
|
||||
extern const u8 gText_ThreePkmnAreNeeded[];
|
||||
extern const u8 gText_TwoPokemonAreNeeded[];
|
||||
extern const u8 gText_PokemonCantBeSame[];
|
||||
extern const u8 gText_NoIdenticalHoldItems[];
|
||||
extern const u8 gString_Dummy[];
|
||||
extern const u8 gText_DoWhatWithPokemon[];
|
||||
extern const u8 gText_RestoreWhichMove[];
|
||||
extern const u8 gText_BoostPp[];
|
||||
extern const u8 gText_DoWhatWithItem[];
|
||||
extern const u8 gText_DoWhatWithMail[];
|
||||
extern const u8 gText_NoUse[];
|
||||
extern const u8 gText_Able[];
|
||||
extern const u8 gText_First_PM[];
|
||||
extern const u8 gText_Second_PM[];
|
||||
extern const u8 gText_Third_PM[];
|
||||
extern const u8 gText_NotAble[];
|
||||
extern const u8 gText_Able3[];
|
||||
extern const u8 gText_NotAble2[];
|
||||
extern const u8 gText_Learned[];
|
||||
extern const u8 gText_Able2[];
|
||||
extern const u8 gText_CutATreeOrGrass[];
|
||||
extern const u8 gText_FlyToAKnownTown[];
|
||||
extern const u8 gText_TravelOnWater[];
|
||||
extern const u8 gText_MoveHeavyBoulders[];
|
||||
extern const u8 gText_LightUpDarkness[];
|
||||
extern const u8 gText_ShatterACrackedRock[];
|
||||
extern const u8 gText_ClimbAWaterfall[];
|
||||
extern const u8 gText_EscapeFromHere[];
|
||||
extern const u8 gText_LureWildPokemon[];
|
||||
extern const u8 gText_ShareHp[];
|
||||
extern const u8 gText_ReturnToAHealingSpot[];
|
||||
extern const u8 gText_Summary5[];
|
||||
extern const u8 gText_Switch2[];
|
||||
extern const u8 gText_Item[];
|
||||
extern const u8 gText_Take[];
|
||||
extern const u8 gText_Mail[];
|
||||
extern const u8 gText_Take2[];
|
||||
extern const u8 gText_Read2[];
|
||||
extern const u8 gText_Shift[];
|
||||
extern const u8 gText_SendOut[];
|
||||
extern const u8 gText_Enter[];
|
||||
extern const u8 gText_NoEntry[];
|
||||
extern const u8 gText_Store[];
|
||||
extern const u8 gText_Register[];
|
||||
extern const u8 gText_Trade4[];
|
||||
extern const u8 gText_NotPkmnOtherTrainerWants[];
|
||||
extern const u8 gText_ThatIsntAnEgg[];
|
||||
extern const u8 gText_PkmnCantBeTradedNow[];
|
||||
extern const u8 gText_OtherTrainersPkmnCantBeTraded[];
|
||||
extern const u8 gText_EggCantBeTradedNow[];
|
||||
extern const u8 gText_OtherTrainerCantAcceptPkmn[];
|
||||
extern const u8 gText_CantTradeWithTrainer[];
|
||||
extern const u8 gUnknown_84176CF[];
|
||||
extern const u8 gText_PkmnWasGivenItem[];
|
||||
extern const u8 gText_ReceivedItemFromPkmn[];
|
||||
extern const u8 gText_PkmnAlreadyHoldingItemSwitch[];
|
||||
extern const u8 gText_SwitchedPkmnItem[];
|
||||
extern const u8 gText_BagFullCouldNotRemoveItem[];
|
||||
extern const u8 gText_PkmnCantParticipate[];
|
||||
extern const u8 gText_CancelParticipation[];
|
||||
extern const u8 gUnknown_8417494[];
|
||||
extern const u8 gMenuText_Confirm[];
|
||||
extern const u8 gText_Lv[];
|
||||
extern const u8 gText_MaleSymbol[];
|
||||
extern const u8 gText_FemaleSymbol[];
|
||||
extern const u8 gText_Slash[];
|
||||
extern const u8 gUnknown_8417457[];
|
||||
extern const u8 gText_PkmnNotHolding[];
|
||||
extern const u8 gText_PCMailboxFull[];
|
||||
extern const u8 gText_MailSentToPC[];
|
||||
extern const u8 gText_MailMessageWillBeLost[];
|
||||
extern const u8 gText_SendMailToPC[];
|
||||
extern const u8 gText_MailTakenFromPkmn[];
|
||||
extern const u8 gUnknown_8416B3E[];
|
||||
extern const u8 gUnknown_8416B16[];
|
||||
extern const u8 gText_PauseUntilPress[];
|
||||
extern const u8 gText_CantUseUntilNewBadge[];
|
||||
extern const u8 gText_ReturnToHealingSpot[];
|
||||
extern const u8 gText_EscapeFromHereAndReturnTo[];
|
||||
extern const u8 gText_PkmnCuredOfPoison[];
|
||||
extern const u8 gText_PkmnWokeUp2[];
|
||||
extern const u8 gText_PkmnBurnHealed[];
|
||||
extern const u8 gText_PkmnThawedOut[];
|
||||
extern const u8 gText_PkmnCuredOfParalysis[];
|
||||
extern const u8 gText_PkmnSnappedOutOfConfusion[];
|
||||
extern const u8 gText_PkmnGotOverInfatuation[];
|
||||
extern const u8 gText_PkmnBecameHealthy[];
|
||||
extern const u8 gText_HP3[];
|
||||
extern const u8 gText_Attack3[];
|
||||
extern const u8 gText_Defense3[];
|
||||
extern const u8 gText_Speed2[];
|
||||
extern const u8 gText_SpAtk3[];
|
||||
extern const u8 gText_SpDef3[];
|
||||
extern const u8 gText_PkmnBaseVar2StatIncreased[];
|
||||
extern const u8 gText_MovesPPIncreased[];
|
||||
extern const u8 gText_PPWasRestored[];
|
||||
extern const u8 gText_PkmnHPRestoredByVar2[];
|
||||
extern const u8 gText_PkmnNeedsToReplaceMove[];
|
||||
extern const u8 gText_PkmnCantLearnMove[];
|
||||
extern const u8 gText_PkmnAlreadyKnows[];
|
||||
extern const u8 gText_PkmnLearnedMove3[];
|
||||
extern const u8 gText_WhichMoveToForget[];
|
||||
extern const u8 gText_12PoofForgotMove[];
|
||||
extern const u8 gText_StopLearningMove2[];
|
||||
extern const u8 gText_MoveNotLearned[];
|
||||
extern const u8 gText_PkmnElevatedToLvVar2[];
|
||||
extern const u8 gText_PkmnHoldingItemCantHoldMail[];
|
||||
extern const u8 gText_MailTransferredFromMailbox[];
|
||||
extern const u8 gText_RemoveMailBeforeItem[];
|
||||
extern const u8 gText_CantSwitchWithAlly[];
|
||||
extern const u8 gText_PkmnHasNoEnergy[];
|
||||
extern const u8 gText_PkmnAlreadyInBattle[];
|
||||
extern const u8 gText_EggCantBattle[];
|
||||
extern const u8 gText_PkmnAlreadySelected[];
|
||||
extern const u8 gText_PkmnCantSwitchOut[];
|
||||
|
||||
// credits
|
||||
extern const u8 gString_Dummy[];
|
||||
extern const u8 gString_PokemonFireRed_Staff[]; // FR
|
||||
@@ -390,7 +524,7 @@ extern const u8 gText_Pokedex[];
|
||||
extern const u8 gTextJPDummy_Hiki[];
|
||||
extern const u8 gText_Badges[];
|
||||
extern const u8 gTextJPDummy_Ko[];
|
||||
extern const u8 gUnknown_841B6F4[];
|
||||
extern const u8 gText_Register[];
|
||||
|
||||
// mystery_gift_menu
|
||||
extern const u8 gText_PickOKExit[];
|
||||
@@ -703,9 +837,9 @@ extern const u8 gUnknown_841E16B[];
|
||||
extern const u8 gUnknown_8417094[];
|
||||
extern const u8 gUnknown_841E199[];
|
||||
extern const u8 gUnknown_841E1C5[];
|
||||
extern const u8 gUnknown_84170BC[];
|
||||
extern const u8 gUnknown_84170E0[];
|
||||
extern const u8 gUnknown_84170FC[];
|
||||
extern const u8 gText_PkmnCantBeTradedNow[];
|
||||
extern const u8 gText_EggCantBeTradedNow[];
|
||||
extern const u8 gText_OtherTrainersPkmnCantBeTraded[];
|
||||
extern const u8 gUnknown_841E09F[];
|
||||
|
||||
extern const u8 gEasyChatGroupName_Pokemon[];
|
||||
|
||||
@@ -1,11 +1,17 @@
|
||||
#ifndef GUARD_TRADE_H
|
||||
#define GUARD_TRADE_H
|
||||
|
||||
#include "global.h"
|
||||
#include "librfu.h"
|
||||
#include "constants/trade.h"
|
||||
|
||||
extern struct MailStruct gLinkPartnerMail[6];
|
||||
extern u8 gSelectedTradeMonPositions[2];
|
||||
|
||||
extern const u16 gUnknown_826601C[];
|
||||
void CB2_ReturnFromLinkTrade(void);
|
||||
s32 sub_804FB34(void);
|
||||
s32 CanRegisterMonForTradingBoard(struct UnkLinkRfuStruct_02022B14Substruct rfuPlayer, u16 species2, u16 species, u8 isObedientBitSet); // TODO: currently in link_rfu_2.s. further file split needed?
|
||||
s32 GetUnionRoomTradeMessageId(struct UnkLinkRfuStruct_02022B14Substruct rfuPlayer, struct UnkLinkRfuStruct_02022B14Substruct rfuPartner, u16 playerSpecies2, u16 partnerSpecies, u8 requestedType, u16 playerSpecies, u8 isObedientBitSet);
|
||||
|
||||
#endif //GUARD_TRADE_H
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
#ifndef GUARD_UNION_ROOM_H
|
||||
#define GUARD_UNION_ROOM_H
|
||||
|
||||
#include "global.h"
|
||||
#include "librfu.h"
|
||||
|
||||
struct UnkStruct_Shared
|
||||
{
|
||||
struct UnkLinkRfuStruct_02022B14 field_0;
|
||||
@@ -146,4 +149,8 @@ struct TradeUnkStruct
|
||||
u32 personality;
|
||||
};
|
||||
|
||||
extern struct UnkLinkRfuStruct_02022B14Substruct gUnknown_203B064;
|
||||
extern u16 gUnionRoomOfferedSpecies;
|
||||
extern u8 gUnionRoomRequestedMonType;
|
||||
|
||||
#endif //GUARD_UNION_ROOM_H
|
||||
|
||||
Reference in New Issue
Block a user