Skip to content

[IMP] Add double stat bar with both "absolute" & "relative" behavior - #3

Open
MiquelRForgeFlow wants to merge 1 commit into
JoanSForgeFlow:mainfrom
MiquelRForgeFlow:main-stat-percentage
Open

[IMP] Add double stat bar with both "absolute" & "relative" behavior #3
MiquelRForgeFlow wants to merge 1 commit into
JoanSForgeFlow:mainfrom
MiquelRForgeFlow:main-stat-percentage

Conversation

@MiquelRForgeFlow

@MiquelRForgeFlow MiquelRForgeFlow commented May 11, 2023

Copy link
Copy Markdown

Display a double stat bar showing both the absolute value (over the maximum of 255) and the relative percentage over the Pokémon's own stat sum.

The relative bar required recalibrated color thresholds: the previous values (35/20) were calibrated against the absolute maximum of 255. Using Gen 1's average BST (~450) as reference: 35 × 255 / 450 ≈ 20 and 20 × 255 / 450 ≈ 11.

@MiquelRForgeFlow
MiquelRForgeFlow force-pushed the main-stat-percentage branch 2 times, most recently from c4aecdf to 8c81f20 Compare May 12, 2023 15:22
@MiquelRForgeFlow MiquelRForgeFlow changed the title [FIX] Use individual relative stat percentage, not 255 [FIX] Use individual relative stat percentage for stat color May 12, 2023
@MiquelRForgeFlow
MiquelRForgeFlow force-pushed the main-stat-percentage branch 2 times, most recently from f63a400 to 102f858 Compare March 12, 2026 20:11
Display a double stat bar showing both the absolute value (over the
maximum of 255) and the relative percentage over the Pokémon's own stat
sum.

The relative bar required recalibrated color thresholds: the previous
values (35/20) were calibrated against the absolute maximum of 255.
Using Gen 1's average BST (~450) as reference: 35 × 255 / 450 ≈ 20 and
20 × 255 / 450 ≈ 11.
@MiquelRForgeFlow MiquelRForgeFlow changed the title [FIX] Use individual relative stat percentage for stat color [IMP] Add double stat bar with both "absolute" & "relative" behavior Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant