changed select hold image and added bike edge case

voloved 2023-08-31 08:35:52 -04:00
parent 1c7d69530a
commit fc5913688e
1 changed files with 27 additions and 2 deletions

@ -5,7 +5,7 @@ By devolov
## Add this recolored SEL image into `graphics/bag/` as `select_button_hold.png`. ## Add this recolored SEL image into `graphics/bag/` as `select_button_hold.png`.
--------------------- graphics/bag/select_button_hold.png --------------------- --------------------- graphics/bag/select_button_hold.png ---------------------
![select_button_hold](https://github.com/pret/pokeemerald/assets/36523934/2a23840f-d2f3-4842-9874-2c492039566a) ![select_button_hold](https://github.com/pret/pokeemerald/assets/36523934/36cef18c-c344-4a28-9f5b-9fa749e2882d)
## Add the new item to register into the save data. Saving it in a way where it takes space from `unused_3598` allows save compatibility older sav files. ## Add the new item to register into the save data. Saving it in a way where it takes space from `unused_3598` allows save compatibility older sav files.
@ -430,3 +430,28 @@ index a64b8ffc4..953f78fc7 100644
extern const u8 EventScript_WhiteOut[]; extern const u8 EventScript_WhiteOut[];
extern const u8 EventScript_ResetMrBriney[]; extern const u8 EventScript_ResetMrBriney[];
``` ```
## Modify SwapRegisteredBike for the new register option.
```diff
--------------------------------- src/item.c ---------------------------------
void SwapRegisteredBike(void)
{
switch (gSaveBlock1Ptr->registeredItem)
{
case ITEM_MACH_BIKE:
gSaveBlock1Ptr->registeredItem = ITEM_ACRO_BIKE;
break;
case ITEM_ACRO_BIKE:
gSaveBlock1Ptr->registeredItem = ITEM_MACH_BIKE;
break;
}
+ switch (gSaveBlock1Ptr->registeredLongItem)
+ {
+ case ITEM_MACH_BIKE:
+ gSaveBlock1Ptr->registeredLongItem = ITEM_ACRO_BIKE;
+ break;
+ case ITEM_ACRO_BIKE:
+ gSaveBlock1Ptr->registeredLongItem = ITEM_MACH_BIKE;
+ break;
+ }
}