Skip to content

[Misc] New Splash Texts, March 2025#5345

Merged
damocleas merged 31 commits intobetafrom
splashtexts
Mar 28, 2025
Merged

[Misc] New Splash Texts, March 2025#5345
damocleas merged 31 commits intobetafrom
splashtexts

Conversation

@damocleas
Copy link
Collaborator

@damocleas damocleas commented Feb 16, 2025

What are the changes the user will see?

More splash texts!
Seasonal/Event splash texts now actually enabled!

Why am I making these changes?

People love Splash Texts. Adding some more since it has been ~4+ months!

What are the changes from a developer perspective?

  • Upped the weight multiplier for Battles Won from 10 -> 15

    • Upped Seasonal from 10 -> 15 as well
    • Added a new 'Pokemon Names' weight multiplier, used for the "underratedPokemon" splash text
  • Updated 'Battles Won fallback number' to -1

  • Updated the dates for all of the seasonal splash texts

    • Added many new splash texts
    • Added "Valentines" and "April Fools" seasonals
  • Added more imports to title-ui-handler.ts

  • New "randomPokemon" for splash text, calls a random pokemon using its translated name

    • Currently used for 4 different splash texts
  • New "genderSplash", calls the name of the player's character that will be from https://github.com/pagefaultgames/pokerogue-locales/blob/main/en/trainer-names.json

    • Currently used for 1 splash text as of now

Screenshots/Videos

Video of the Pokemon name splash message in action
splash.text.mp4

How to test the changes?

Merge to a local with the below, change frequency numbers or comment some out if you're having trouble checking some.
https://github.com/damocleas/pokerogue-locales/blob/main/en/splash-texts.json

Checklist

  • I'm using beta as my base branch
  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • Have I tested the changes manually?
  • Are all unit tests still passing? (npm run test)
    • Have I created new automated tests (npm run create-test) or updated existing tests related to the PR's changes?
  • Have I provided screenshots/videos of the changes (if applicable)?
    • Have I made sure that any UI change works for both UI themes (default and legacy)?

Are there any localization additions or changes? If so:

damocleas and others added 2 commits February 16, 2025 00:28
This will display a random Pokemon's name, followed by an exclamation point (ex. "Bulbasaur!").
@Madmadness65 Madmadness65 added Localization Provides or updates translation efforts Miscellaneous Changes that don't fit under any other label labels Feb 16, 2025
@damocleas damocleas changed the title [Misc] New Splash Texts Feb. 2025 [Misc] New Splash Texts March 2025 Mar 15, 2025
@damocleas damocleas marked this pull request as ready for review March 25, 2025 01:56
@damocleas damocleas requested a review from a team as a code owner March 25, 2025 01:56
@damocleas damocleas requested review from Wlowscha and Xavion3 March 25, 2025 01:56
@damocleas damocleas requested a review from SirzBenjie March 25, 2025 01:56
@damocleas damocleas marked this pull request as draft March 25, 2025 01:56
@damocleas
Copy link
Collaborator Author

meant to do the locales one oops

Madmadness65 and others added 4 commits March 24, 2025 21:05
@damocleas damocleas marked this pull request as ready for review March 26, 2025 01:22
@damocleas damocleas changed the title [Misc] New Splash Texts March 2025 [Misc] New Splash Texts, March 2025 Mar 26, 2025
Madmadness65
Madmadness65 previously approved these changes Mar 27, 2025
CodeTappert
CodeTappert previously approved these changes Mar 27, 2025
@CodeTappert CodeTappert dismissed their stale review March 27, 2025 20:38

Changes need to be made before merge

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
@damocleas
Copy link
Collaborator Author

changes made, one of them isn't even here, doesn't affect this PR, that will be fixed in the locales separately and doesn't halt this one

@damocleas damocleas enabled auto-merge (squash) March 27, 2025 21:47
@damocleas damocleas merged commit 19c61a0 into beta Mar 28, 2025
13 checks passed
@DayKev DayKev deleted the splashtexts branch March 28, 2025 02:56
SirzBenjie pushed a commit to SirzBenjie/pokerogue that referenced this pull request Mar 29, 2025
* Update splash-messages.ts 1

* Add Pokemon name splash text

This will display a random Pokemon's name, followed by an exclamation point (ex. "Bulbasaur!").

* Make Pokemon name splash message weighted

* Update splash-messages.ts

* Update splash-messages.ts

* fix trailing spaces

* Update splash-messages.ts

* Update splash-messages.ts

* Add splashes which use random Pokemon

* Update splash message tests

* Update splash-messages.ts

* Update splash-messages.ts

* Missing comma

* Fix length on test

It even says to do so whenever weight multipliers are adjusted...

* Update splash-messages.ts

* add missing prefix thing

* adjusted comment in splash_messages.test.ts

* Update splash-messages.ts

* fix blank line

* Add gender splash message code

This makes the specific April Fools splash message functional.
Also fixed a linter issue with the randomPokemon code.

* Update title-ui-handler.ts changed battles won fallback number to -1

* Update splash-messages.ts

* changed afd to 2 days

* Update splash_messages.test.ts

* Update src/data/splash-messages.ts

Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>

---------

Co-authored-by: Madmadness65 <blaze.the.fireman@gmail.com>
Co-authored-by: Madmadness65 <59298170+Madmadness65@users.noreply.github.com>
Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com>
Signed-off-by: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Localization Provides or updates translation efforts Miscellaneous Changes that don't fit under any other label

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants