Merge branch 'master' of https://github.com/pret/pokefirered into doc-ql
This commit is contained in:
@@ -258,7 +258,7 @@ void InitAnimBgTilemapBuffer(u32 bgId, const void *src);
|
||||
void AnimLoadCompressedBgTilemap(u32 bgId, const u32 *src);
|
||||
u8 GetBattleBgPaletteNum(void);
|
||||
void ToggleBg3Mode(bool8 arg0);
|
||||
void TradeMenuBouncePartySprites(struct Sprite *sprite);
|
||||
void Trade_MoveSelectedMonToTarget(struct Sprite *sprite);
|
||||
void InitSpriteDataForLinearTranslation(struct Sprite *sprite);
|
||||
void InitAnimLinearTranslation(struct Sprite *sprite);
|
||||
void StartAnimLinearTranslation(struct Sprite *sprite);
|
||||
|
||||
@@ -120,16 +120,16 @@ struct HpAndStatus
|
||||
|
||||
struct MovePpInfo
|
||||
{
|
||||
u16 moves[4];
|
||||
u8 pp[4];
|
||||
u16 moves[MAX_MON_MOVES];
|
||||
u8 pp[MAX_MON_MOVES];
|
||||
u8 ppBonuses;
|
||||
};
|
||||
|
||||
struct ChooseMoveStruct
|
||||
{
|
||||
u16 moves[4];
|
||||
u8 currentPp[4];
|
||||
u8 maxPp[4];
|
||||
u16 moves[MAX_MON_MOVES];
|
||||
u8 currentPp[MAX_MON_MOVES];
|
||||
u8 maxPp[MAX_MON_MOVES];
|
||||
u16 species;
|
||||
u8 monType1;
|
||||
u8 monType2;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#define MB_MOUNTAIN_TOP 0x0C
|
||||
//
|
||||
#define MB_POND_WATER 0x10
|
||||
#define MB_SEMI_DEEP_WATER 0x11
|
||||
#define MB_FAST_WATER 0x11
|
||||
#define MB_DEEP_WATER 0x12
|
||||
#define MB_WATERFALL 0x13
|
||||
//
|
||||
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
// gTileset_VermilionCity
|
||||
#define METATILE_VermilionCity_Door 0x29E
|
||||
#define METATILE_VermilionCity_PokemonFanClubDoor 0x2E1 // Used to reference door tiles in field_door.c, but the metatile in the tileset is dummied
|
||||
#define METATILE_VermilionCity_SSAnneWarp 0x2E1
|
||||
|
||||
// gTileset_VermilionGym
|
||||
#define METATILE_VermilionGym_Floor 0x281
|
||||
|
||||
@@ -357,8 +357,6 @@
|
||||
#define MOVE_DOOM_DESIRE 353
|
||||
#define MOVE_PSYCHO_BOOST 354
|
||||
|
||||
#define LAST_MOVE_INDEX MOVE_PSYCHO_BOOST
|
||||
|
||||
#define MOVES_COUNT 355
|
||||
|
||||
// Used for checks for moves affected by Disable, Mimic, etc.
|
||||
|
||||
@@ -20,21 +20,13 @@
|
||||
#define INGAME_TRADE_TANGELA 7
|
||||
#define INGAME_TRADE_SEEL 8
|
||||
|
||||
// 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
|
||||
#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_PARTNER_EGG_YET 5
|
||||
|
||||
// Return values for CheckValidityOfTradeMons
|
||||
#define PLAYER_MON_INVALID 0
|
||||
@@ -46,63 +38,6 @@
|
||||
#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
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ struct MonCoords
|
||||
#define GET_MON_COORDS_HEIGHT(size)((size & 0xF) * 8)
|
||||
|
||||
extern const u8 gSpeciesNames[][POKEMON_NAME_LENGTH + 1];
|
||||
extern const u8 gMoveNames[][13];
|
||||
extern const u8 gMoveNames[][MOVE_NAME_LENGTH + 1];
|
||||
|
||||
extern const u8 gTrainerClassNames[][13];
|
||||
|
||||
|
||||
+23
-23
@@ -748,29 +748,29 @@ extern const u8 gNameChoice_Norie[];
|
||||
extern const u8 gNameChoice_Sai[];
|
||||
extern const u8 gNameChoice_Momo[];
|
||||
extern const u8 gNameChoice_Suzi[];
|
||||
extern const u8 gNewGame_HelpDocs1[];
|
||||
extern const u8 gNewGame_HelpDocs2[];
|
||||
extern const u8 gNewGame_HelpDocs3[];
|
||||
extern const u8 gNewGame_HelpDocs4[];
|
||||
extern const u8 gNewGame_HelpDocs5[];
|
||||
extern const u8 gNewGame_HelpDocs6[];
|
||||
extern const u8 gNewGame_HelpDocs7[];
|
||||
extern const u8 gOakText_AskPlayerGender[];
|
||||
extern const u8 gNewGameAdventureIntro1[];
|
||||
extern const u8 gNewGameAdventureIntro2[];
|
||||
extern const u8 gNewGameAdventureIntro3[];
|
||||
extern const u8 gOakText_WelcomeToTheWorld[];
|
||||
extern const u8 gOakText_WorldInhabited1[];
|
||||
extern const u8 gOakText_WorldInhabited2[];
|
||||
extern const u8 gOakText_PetsBattlingStudy[];
|
||||
extern const u8 gOakText_TellMeALittleAboutYourself[];
|
||||
extern const u8 gOakText_AskPlayerName[];
|
||||
extern const u8 gOakText_FinalizePlayerName[];
|
||||
extern const u8 gOakText_IntroduceRival[];
|
||||
extern const u8 gOakText_AskRivalName[];
|
||||
extern const u8 gOakText_ConfirmRivalName[];
|
||||
extern const u8 gOakText_RememberRivalName[];
|
||||
extern const u8 gOakText_LegendAboutToUnfold[];
|
||||
extern const u8 gControlsGuide_Text_Intro[];
|
||||
extern const u8 gControlsGuide_Text_DPad[];
|
||||
extern const u8 gControlsGuide_Text_AButton[];
|
||||
extern const u8 gControlsGuide_Text_BButton[];
|
||||
extern const u8 gControlsGuide_Text_StartButton[];
|
||||
extern const u8 gControlsGuide_Text_SelectButton[];
|
||||
extern const u8 gControlsGuide_Text_LRButtons[];
|
||||
extern const u8 gOakSpeech_Text_AskPlayerGender[];
|
||||
extern const u8 gPikachuIntro_Text_Page1[];
|
||||
extern const u8 gPikachuIntro_Text_Page2[];
|
||||
extern const u8 gPikachuIntro_Text_Page3[];
|
||||
extern const u8 gOakSpeech_Text_WelcomeToTheWorld[];
|
||||
extern const u8 gOakSpeech_Text_ThisWorld[];
|
||||
extern const u8 gOakSpeech_Text_IsInhabitedFarAndWide[];
|
||||
extern const u8 gOakSpeech_Text_IStudyPokemon[];
|
||||
extern const u8 gOakSpeech_Text_TellMeALittleAboutYourself[];
|
||||
extern const u8 gOakSpeech_Text_YourNameWhatIsIt[];
|
||||
extern const u8 gOakSpeech_Text_SoYourNameIsPlayer[];
|
||||
extern const u8 gOakSpeech_Text_WhatWasHisName[];
|
||||
extern const u8 gOakSpeech_Text_YourRivalsNameWhatWasIt[];
|
||||
extern const u8 gOakSpeech_Text_ConfirmRivalName[];
|
||||
extern const u8 gOakSpeech_Text_RememberRivalsName[];
|
||||
extern const u8 gOakSpeech_Text_LetsGo[];
|
||||
|
||||
// Help System
|
||||
extern const u8 Help_Text_WhatShouldIDo[];
|
||||
|
||||
+8
-8
@@ -2883,10 +2883,10 @@ extern const u32 gTradeGba2_Pal[];
|
||||
extern const u32 gTradeGba_Gfx[];
|
||||
|
||||
// teachy_tv
|
||||
extern const u8 gUnknown_8E86240[];
|
||||
extern const u8 gUnknown_8E86BE8[];
|
||||
extern const u8 gUnknown_8E86D6C[];
|
||||
extern const u32 gUnknown_8E86F98[];
|
||||
extern const u8 gTeachyTv_Gfx[];
|
||||
extern const u8 gTeachyTvScreen_Tilemap[];
|
||||
extern const u8 gTeachyTvTitle_Tilemap[];
|
||||
extern const u32 gTeachyTv_Pal[];
|
||||
|
||||
// berry_fix_program
|
||||
extern const u8 gBerryFixGameboy_Gfx[];
|
||||
@@ -4822,10 +4822,10 @@ extern const u8 gMonIcon_QuestionMark[];
|
||||
|
||||
// trade
|
||||
extern const u16 gTradeMenu_Pal[];
|
||||
extern const u16 gTradeButtons_Pal[];
|
||||
extern const u16 gTradeCursor_Pal[];
|
||||
extern const u16 gTradeMenu_Gfx[];
|
||||
extern const u16 gUnknown_8E9E9FC[];
|
||||
extern const u16 gTradeButtons_Gfx[];
|
||||
extern const u16 gTradeMenu_Tilemap[];
|
||||
extern const u16 gTradeCursor_Gfx[];
|
||||
extern const u16 gTradeMenuMonBox_Tilemap[];
|
||||
|
||||
// mon_markings
|
||||
@@ -4892,7 +4892,7 @@ extern const u32 gFile_graphics_battle_transitions_vs_frame_tilemap[];
|
||||
// berry_crush
|
||||
extern const u16 gBerryCrush_Crusher_Pal[];
|
||||
extern const u32 gBerryCrush_Crusher_Gfx[];
|
||||
extern const u32 gBerryCrush_Crusher_Tilemap[];
|
||||
extern const u32 gBerryCrush_TextWindows_Tilemap[];
|
||||
|
||||
// easy_chat_3
|
||||
extern const u32 gEasyChatWindow_Gfx[];
|
||||
|
||||
+1
-1
@@ -84,7 +84,7 @@ struct RfuGameCompatibilityData
|
||||
u16 hasNews:1;
|
||||
u16 hasCard:1;
|
||||
u16 unknown:1; // Never read
|
||||
u16 isChampion:1;
|
||||
u16 canLinkNationally:1;
|
||||
u16 hasNationalDex:1;
|
||||
u16 gameClear:1;
|
||||
u16 version:4;
|
||||
|
||||
+1
-1
@@ -41,7 +41,7 @@ void DestroyYesNoMenu(void);
|
||||
s8 Menu_ProcessInputNoWrapClearOnChoose(void);
|
||||
void CreateYesNoMenu(const struct WindowTemplate *window, u8 fontId, u8 left, u8 top, u16 baseTileNum, u8 paletteNum, u8 initialCursorPos);
|
||||
void AddItemMenuActionTextPrinters(u8 windowId, u8 fontId, u8 left, u8 top, u8 letterSpacing, u8 lineHeight, u8 itemCount, const struct MenuAction *strs, const u8 *orderArray);
|
||||
void UnionRoomAndTradeMenuPrintOptions(u8 windowId, u8 fontId, u8 lineHeight, u8 itemCount, const struct MenuAction *strs);
|
||||
void PrintMenuTable(u8 windowId, u8 fontId, u8 lineHeight, u8 itemCount, const struct MenuAction *strs);
|
||||
void MultichoiceList_PrintItems(u8 windowId, u8 fontId, u8 left, u8 top, u8 lineHeight, u8 itemCount, const struct MenuAction *strs, u8 letterSpacing, u8 lineSpacing);
|
||||
void PrintTextArray(u8 windowId, u8 fontId, u8 left, u8 top, u8 lineHeight, u8 itemCount, const struct MenuAction *strs);
|
||||
s8 Menu_ProcessInputNoWrapAround_other(void);
|
||||
|
||||
@@ -26,7 +26,7 @@ bool8 MetatileBehavior_IsLadder(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsNonAnimDoor(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDeepSouthWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsSurfable(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsSemiDeepWater(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsFastWater(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsEastArrowWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsWestArrowWarp(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsNorthArrowWarp(u8 metatileBehavior);
|
||||
@@ -64,7 +64,7 @@ bool8 MetatileBehavior_IsUnableToEmerge(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsShallowFlowingWater(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsThinIce(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsCrackedIce(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDeepSemiDeepOrSplashingWater(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsDeepWaterTerrain(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsSurfableAndNotWaterfall(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsEastBlocked(u8 metatileBehavior);
|
||||
bool8 MetatileBehavior_IsWestBlocked(u8 metatileBehavior);
|
||||
|
||||
+2
-2
@@ -36,8 +36,8 @@ extern const struct SpriteTemplate gBallSpriteTemplates[];
|
||||
#define POKEBALL_OPPONENT_SENDOUT 0xFE
|
||||
|
||||
u8 DoPokeballSendOutAnimation(s16 pan, u8 kindOfThrow);
|
||||
void CreatePokeballSpriteToReleaseMon(u8 monSpriteId, u8 bank, u8 x, u8 y, u8 oamPriority, u8 subpriortiy, u8 g, u32 h);
|
||||
u8 CreateTradePokeballSprite(u8 monSpriteId, u8 bank, u8 x, u8 y, u8 oamPriority, u8 subpriortiy, u8 g, u32 h);
|
||||
void CreatePokeballSpriteToReleaseMon(u8 monSpriteId, u8 monPalNum, u8 x, u8 y, u8 oamPriority, u8 subpriortiy, u8 delay, u32 fadePalettes);
|
||||
u8 CreateTradePokeballSprite(u8 monSpriteId, u8 monPalNum, u8 x, u8 y, u8 oamPriority, u8 subPriority, u8 delay, u32 fadePalettes);
|
||||
void DoHitAnimHealthboxEffect(u8 bank);
|
||||
void LoadBallGfx(u8 ballId);
|
||||
void FreeBallGfx(u8 ballId);
|
||||
|
||||
+1
-1
@@ -443,7 +443,7 @@ const u32 *GetMonSpritePalFromSpeciesAndPersonality(u16 species, u32 otId, u32 p
|
||||
const struct CompressedSpritePalette *GetMonSpritePalStruct(struct Pokemon *mon);
|
||||
const struct CompressedSpritePalette *GetMonSpritePalStructFromOtIdPersonality(u16 species, u32 otId , u32 personality);
|
||||
bool32 IsHMMove2(u16 move);
|
||||
bool8 IsPokeSpriteNotFlipped(u16 species);
|
||||
bool8 IsMonSpriteNotFlipped(u16 species);
|
||||
s8 GetFlavorRelationByPersonality(u32 personality, u8 flavor);
|
||||
bool8 IsTradedMon(struct Pokemon *mon);
|
||||
bool8 IsOtherTrainer(u32 otId, u8 *otName);
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ extern const u8 gText_GenderlessSymbol[];
|
||||
|
||||
extern const u16 gTradeOrHatchMonShadowTilemap[];
|
||||
void CB2_StartCreateTradeMenu(void);
|
||||
s32 Trade_CalcLinkPlayerCompatibilityParam(void);
|
||||
s32 GetGameProgressForLinkTrade(void);
|
||||
s32 CanRegisterMonForTradingBoard(struct RfuGameCompatibilityData rfuPlayer, u16 species2, u16 species, u8 isEventLegal);
|
||||
s32 GetUnionRoomTradeMessageId(struct RfuGameCompatibilityData rfuPlayer, struct RfuGameCompatibilityData rfuPartner, u16 playerSpecies2, u16 partnerSpecies, u8 requestedType, u16 playerSpecies, u8 isEventLegal);
|
||||
void CB2_ReturnToTradeMenuFromSummary(void);
|
||||
|
||||
Reference in New Issue
Block a user