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

Adds define B_RESTORE_HELD_BATTLE_ITEMS following Gen9 #2932

Merged
merged 1 commit into from
Apr 23, 2023

Conversation

AlexOn1ine
Copy link
Collaborator

Description

In Generation 9 Held Items, except for berries, are restored after each battle.
This PR adds B_RESTORE_HELD_BATTLE_ITEMS.

The functionality was already implemented but some things got renamed:

StolenItem -> LostItem
TryRestoreStolenItems -> TryRestoreHeldItems
itemStolen -> itemLost

I was also thinking to add the define to TrySaveExchangedItem but you still need it for berries.

Images

Previously:
item_is_not_restored
With the PR:
Item_is_restored
Berries are not restored after the PR:
berries_are_not_restored

Discord contact info

AlexOnline#2331

@ghoulslash ghoulslash merged commit 594bc83 into rh-hideout:upcoming Apr 23, 2023
@AlexOn1ine AlexOn1ine deleted the restore_battle_items branch April 28, 2023 16:59
@AsparagusEduardo AsparagusEduardo mentioned this pull request May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants