26F-Studio / 26F-Studio/Techmino
Change the way the badge display text is stored
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 899
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Description
Currently, in the language files, we do it kinda like this:
{"000%UP","025%UP","050%UP","075%UP","100%UP"}
But this is just wasteful. Plus, it doesn't allow implementation of 5+ badges without manual modification.
What I think is better is to just store 1 string like this:
"$1%UP"
We replace the $1 placeholder with another string, just like how we do it with the "Stage $1 completed!" string.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the language files and the code that formats the existing "Stage $1 completed!" string. Trace how badge display text is selected and rendered, then replace the fixed percentage entries with a single placeholder-based value while preserving current output and supporting additional badges. Done when badge displays remain correct without enumerating each percentage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- game-dev, localization
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100