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 OW_BERRY_IMMORTAL #5187

Merged
merged 9 commits into from
Aug 20, 2024

Conversation

pkmnsnfrn
Copy link
Collaborator

Description

Brendan plants an Oran Berry, cycles trees forward five times and it doesn't die

  • Adds OW_BERRY_IMMORTAL. If enabled, once a Berry tree has grown a berry, the tree will not disappear until picked by the player.

Details

Usage

OW_BERRY_IMMORTAL

Developers must change this value to TRUE in include/config/overworld.h to enable.

Testing

Clean Branch

You can recreate this branch by applying a patch or pulling the repo. From a clean version of expansion's upcoming, you can either:

Patch

wget https://files.catbox.moe/inkkw3.patch -O immortal.patch ; git apply immortal.patch ; rm immortal.patch

Repo

git remote add psf-expansion https://github.com/PokemonSanFran/pokeemerald-expansion/ ; git pull psf-expansion immortalBerries

Manual Tests

After replicating the branch, to recreate my testing environment, you can either directly download the debug script, or manually create the changes.

Download

OW_BERRY_IMMORTAL == TRUE

wget https://files.catbox.moe/2oij37.h -O include/config/overworld.h

OW_BERRY_IMMORTAL == FALSE

wget https://files.catbox.moe/fv3nbk.h -O include/config/overworld.h

Manual Testing

  • Modify include/config/overworld.h to the desired values
  • Compile
  • Start new game
  • Debug > Utilities > Warp to Map Warp > 0 > 19 > 1
  • Pick Oran berry
  • Plant Oran Berry
  • Debug > Utilities > Berry Functions > Grow map trees (run this five times)

Verified Scenarios

All videos show the steps described in "Manual Testing"

TRUE

true.mp4

FALSE

false.mp4

People who collaborated with me in this PR

This was originally written by by @BuffelSaft. Give them all the credit.

Discord Contact Info

I am pkmnsnfrn on Discord.

include/config/overworld.h Outdated Show resolved Hide resolved
src/berry.c Outdated Show resolved Hide resolved
@hedara90 hedara90 added the category: overworld Pertains to out-of-battle mechanics label Aug 17, 2024
@Bassoonian Bassoonian added the new-feature Adds a feature label Aug 17, 2024
@pkmnsnfrn pkmnsnfrn added the category: items Pertains to items label Aug 17, 2024
@Bassoonian
Copy link
Collaborator

@pkmnsnfrn can you merge upcoming into this again? #5193 is needed to make this compile again

@AsparagusEduardo AsparagusEduardo merged commit af12697 into rh-hideout:upcoming Aug 20, 2024
1 check passed
@AsparagusEduardo AsparagusEduardo deleted the immortalBerries branch August 20, 2024 11:23
@pkmnsnfrn pkmnsnfrn restored the immortalBerries branch August 20, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: items Pertains to items category: overworld Pertains to out-of-battle mechanics new-feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants