-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add B_LEVEL_UP_NOTIFICATION to improve player QoL when performing multiple level ups #4901
base: upcoming
Are you sure you want to change the base?
Add B_LEVEL_UP_NOTIFICATION to improve player QoL when performing multiple level ups #4901
Conversation
what's the bug here? |
on.mp4off.mp4
|
so if I understand it correctly. When it levels up in party it learns all moves but if it is in battle it does not? |
Correct! |
I'll see if I can fix it |
Blocked by CI for unknown reasons: https://discord.com/channels/419213663107416084/1077009799293710357/1313324036394061924 |
Did you run the test in isolation or all together? Also can you try running all tests with 4 cores? |
On my machine, it passes in isolation and all together. I haven't had a chance to run with 4 cores. |
Could you merge in upcoming to see if CI would pass this time? I've ran it with 4 threads and had no failing tests. |
Description
This PR adds
B_LEVEL_UP_NOTIFICATION
toinclude/config/battle.h
. When set toGEN_9
or later, when Pokemon receive enough EXP in battle to progress through multiple levels, the level up message is only shown once.Details
Usage
In
include/config/battle.h
, developers must define which generationB_LEVEL_UP_NOTIFICATION
should use.=>
GEN_9
When a Pokemon receives enough experience to grow multiple levels, the following changes occur:
<
GEN_9
Any value lower than
GEN_9
will handle leveling up the same as vanilla.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/1uugqs.patch ; git apply 1uugqs.patch ; rm 1uugqs.patch
Repo
git remote add psf-expansion https://github.com/PokemonSanFran/pokeemerald-expansion/ ; git pull psf-expansion levelUpNotification
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
data/scripts/debug.inc
Manual Testing
Verified Scenarios
Both videos show:
B_LEVEL_UP_NOTIFICATION == GEN_LATEST
on.mp4
B_LEVEL_UP_NOTIFICATION == GEN_8
off.mp4
People who collaborated with me in this PR
@DizzyEggg wrote all of this.
Features this PR does NOT handle:
Discord Contact Info
I am
pkmnsnfrn
on Discord.