26F-Studio / 26F-Studio/Techmino

Change the way the badge display text is stored

Open
#897 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement internal
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.