Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement bag_sort branch #3938

Closed
wants to merge 13 commits into from
2 changes: 2 additions & 0 deletions include/config/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#define I_POWER_ITEM_BOOST GEN_LATEST // In Gen7+, Power Items grant 8 EVs instead of 4 EVs.
#define I_PREMIER_BALL_BONUS GEN_LATEST // In LGPE onwards (Gen8+ here), you are given a Premier Ball for every 10 Poké Balls of any type and in the same purchase. Previously, it only applied to regular Poké Balls and only 1 could be obtained per purchase.

#define I_BAG_SORT TRUE // Enables sorting the bag by pressing the Start button

// TM config
#define I_REUSABLE_TMS FALSE // In Gen5-8, TMs are reusable. Setting this to TRUE will make all vanilla TMs reusable, though they can also be cherry-picked by setting their importance to 1.

Expand Down
1 change: 1 addition & 0 deletions include/item.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ struct BagPocket
extern const struct Item gItemsInfo[];
extern struct BagPocket gBagPockets[];

u16 GetBagItemQuantity(u16 *quantity);
void ApplyNewEncryptionKeyToBagItems(u32 newKey);
void ApplyNewEncryptionKeyToBagItems_(u32 newKey);
void SetBagItemsPointers(void);
Expand Down
2 changes: 1 addition & 1 deletion src/item.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ EWRAM_DATA struct BagPocket gBagPockets[POCKETS_COUNT] = {0};
#include "data/pokemon/item_effects.h"
#include "data/items.h"

static u16 GetBagItemQuantity(u16 *quantity)
u16 GetBagItemQuantity(u16 *quantity)
{
return gSaveBlock2Ptr->encryptionKey ^ *quantity;
}
Expand Down
Loading
Loading