mirror of https://github.com/pret/pokeemerald.git
changed select hold image and added bike edge case
parent
1c7d69530a
commit
fc5913688e
|
@ -5,7 +5,7 @@ By devolov
|
|||
## Add this recolored SEL image into `graphics/bag/` as `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.
|
||||
|
@ -429,4 +429,29 @@ index a64b8ffc4..953f78fc7 100644
|
|||
// overworld
|
||||
extern const u8 EventScript_WhiteOut[];
|
||||
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;
|
||||
+ }
|
||||
}
|
Loading…
Reference in New Issue