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

Add merged placeholder text for trainer name with class #5622

Merged
merged 9 commits into from
Nov 11, 2024

Conversation

kittenchilly
Copy link

@kittenchilly kittenchilly commented Oct 30, 2024

Description

Adds 4 new merged placeholders from text that combine both the trainer name and the trainer class.
This allows dynamic new lines to break without being awkward when handling trainer names. It also fixes some issues with spaces if the string is used by both the player and NPCs.

Images

image

Discord contact info

kittenchilly

src/battle_message.c Outdated Show resolved Hide resolved
@Bassoonian
Copy link
Collaborator

I would personally try to avoid adding more and more placeholders, which feels unsustainable in the long run. Figuring out a no-break space would probably be more useful in the long run (e.g. in dialogue or other messages)

@kittenchilly
Copy link
Author

kittenchilly commented Oct 30, 2024

I would personally try to avoid adding more and more placeholders, which feels unsustainable in the long run. Figuring out a no-break space would probably be more useful in the long run (e.g. in dialogue or other messages)

This isn't just for the dynamic line break, its also for strings that both NPCs (have a trainer class) and the player (doesn't have a trainer class) use. I don't think I would've done a placeholder if that wasn't a problem.

@Bassoonian Bassoonian added this to the 1.10 milestone Nov 2, 2024
@AsparagusEduardo
Copy link
Collaborator

Since we've checked that these are the only "compound string placeholders" instances, I'd say that it looks good to me to merge. Just needs to solve conflicts.

@kittenchilly
Copy link
Author

Solved conflicts

@AsparagusEduardo AsparagusEduardo merged commit 7409b87 into rh-hideout:upcoming Nov 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants