Merge pull request #569 from GriffinRichards/sync-numtiles
Sync num_tiles flags, document tm_case
This commit is contained in:
+10
-9
@@ -2866,15 +2866,16 @@ extern const u16 gFameCheckerBg3Tilemap[0x400];
|
||||
extern const u16 gFameCheckerBg2Tilemap[0x400];
|
||||
|
||||
// tm_case
|
||||
extern const u32 gUnknown_8E845D8[];
|
||||
extern const u32 gUnknown_8E84A24[];
|
||||
extern const u32 gUnknown_8E84B70[];
|
||||
extern const u32 gUnknown_8E84CB0[];
|
||||
extern const u32 gUnknown_8E84D20[];
|
||||
extern const u32 gTMCase_TMSpriteGfx[];
|
||||
extern const u32 gUnknown_8E84F20[];
|
||||
extern const u32 gUnknown_8E85068[];
|
||||
extern const u8 gUnknown_8E99118[];
|
||||
extern const u32 gTMCase_Gfx[];
|
||||
extern const u32 gTMCaseMenu_Tilemap[];
|
||||
extern const u32 gTMCase_Tilemap[];
|
||||
extern const u32 gTMCaseMenu_Male_Pal[];
|
||||
extern const u32 gTMCaseMenu_Female_Pal[];
|
||||
extern const u32 gTMCaseDisc_Gfx[];
|
||||
extern const u32 gTMCaseDiscTypes1_Pal[];
|
||||
extern const u32 gTMCaseDiscTypes2_Pal[];
|
||||
extern const u8 gTMCaseHM_Gfx[];
|
||||
|
||||
extern const u16 gStandardMenuPalette[];
|
||||
|
||||
// egg_hatch
|
||||
|
||||
+3
-3
@@ -14,7 +14,7 @@ struct Item
|
||||
u8 holdEffectParam;
|
||||
const u8 *description;
|
||||
u8 importance;
|
||||
u8 exitsBagOnUse;
|
||||
u8 registrability;
|
||||
u8 pocket;
|
||||
u8 type; // unused for balls
|
||||
ItemUseFunc fieldUseFunc;
|
||||
@@ -69,7 +69,7 @@ ItemUseFunc ItemId_GetFieldFunc(u16 itemId);
|
||||
u8 ItemId_GetBattleUsage(u16 itemId);
|
||||
ItemUseFunc ItemId_GetBattleFunc(u16 itemId);
|
||||
u8 ItemId_GetSecondaryId(u16 itemId);
|
||||
u16 itemid_get_market_price(u16 itemId);
|
||||
u16 ItemId_GetPrice(u16 itemId);
|
||||
void ClearBag(void);
|
||||
void ClearPCItemSlots(void);
|
||||
void TrySetObtainedItemQuestLogEvent(u16 itemId);
|
||||
@@ -79,7 +79,7 @@ void SortPocketAndPlaceHMsFirst(struct BagPocket * pocket);
|
||||
u16 BagGetItemIdByPocketPosition(u8 pocketId, u16 itemId);
|
||||
u16 BagGetQuantityByPocketPosition(u8 pocketId, u16 itemId);
|
||||
u16 BagGetQuantityByItemId(u16 item);
|
||||
bool8 itemid_is_unique(u16 itemId);
|
||||
u8 ItemId_GetImportance(u16 itemId);
|
||||
void BagPocketCompaction(struct ItemSlot * slots, u8 capacity);
|
||||
u16 GetPcItemQuantity(u16 *);
|
||||
void SetBagPocketsPointers(void);
|
||||
|
||||
+2
-2
@@ -103,8 +103,8 @@ extern const u8 gText_ItemCantBeHeld[];
|
||||
extern const u8 gText_TMCase[];
|
||||
extern const u8 gText_Close[];
|
||||
extern const u8 gText_TMCaseWillBePutAway[];
|
||||
extern const u8 gText_FontSize0[];
|
||||
extern const u8 gText_FontSize2[];
|
||||
extern const u8 gText_Font0[];
|
||||
extern const u8 gText_Font2[];
|
||||
extern const u8 gText_OhNoICantBuyThat[];
|
||||
extern const u8 gText_HowManyWouldYouLikeToSell[];
|
||||
extern const u8 gText_ICanPayThisMuch_WouldThatBeOkay[];
|
||||
|
||||
+13
-9
@@ -1,17 +1,21 @@
|
||||
#ifndef GUARD_TM_CASE_H
|
||||
#define GUARD_TM_CASE_H
|
||||
|
||||
enum TmCaseType
|
||||
{
|
||||
TMCASE_FROMFIELD,
|
||||
TMCASE_FROMPARTYGIVE,
|
||||
TMCASE_FROMMARTSELL,
|
||||
TMCASE_FROMPOKEMONSTORAGEPC,
|
||||
TMCASE_FROMBATTLE,
|
||||
TMCASE_NA
|
||||
// Values for 'type' argument to InitTMCase
|
||||
enum {
|
||||
TMCASE_FIELD,
|
||||
TMCASE_GIVE_PARTY,
|
||||
TMCASE_SELL,
|
||||
TMCASE_GIVE_PC,
|
||||
TMCASE_POKEDUDE,
|
||||
TMCASE_REOPENING,
|
||||
};
|
||||
|
||||
void InitTMCase(u8 a0, void (* a1)(void), u8 a2);
|
||||
// Alternative value for 'allowSelectClose' argument to InitTMCase.
|
||||
// Indicates that the previous value should be preserved
|
||||
#define TMCASE_KEEP_PREV 0xFF
|
||||
|
||||
void InitTMCase(u8 type, void (* exitCallback)(void), bool8 allowSelectClose);
|
||||
void ResetTMCaseCursorPos(void);
|
||||
void Pokedude_InitTMCase(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user