Skip to content

Fix text cutoff and skill cap stuck past level 75#2

Merged
TreeFidyDad merged 1 commit into
mainfrom
treefidydad/fix-text-cutoff-bug
Jun 24, 2026
Merged

Fix text cutoff and skill cap stuck past level 75#2
TreeFidyDad merged 1 commit into
mainfrom
treefidydad/fix-text-cutoff-bug

Conversation

@TreeFidyDad

@TreeFidyDad TreeFidyDad commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Fixes

1. Bottom row of text cut off in crystal/donut cards

The text_block_h was 52px — not enough vertical space for all 3 caption lines (skill name, cur/cap, level hint). Increased to 62px.

2. Skill cap stops updating past level 75

When the engine's GetCap() returns 0/nil, the fallback skill_cap_for() was hard-clamped at level 75. This meant:

  • On servers with level cap > 75, the displayed cap froze at the level-75 value
  • Skills boosted by merit points appeared capped when they weren't

Changes:

  • skill_cap_for() now extrapolates past level 75 using the end-slope of CAP_REF tables
  • effective_level_for / min_mob_level_for search up to level 99
  • When using fallback table cap and cur > cap, bump cap to cur + 1 so skills aren't falsely flagged as capped

@TreeFidyDad TreeFidyDad changed the title Fix bottom row of text being cut off in crystal/donut skill cards Fix text cutoff and skill cap stuck past level 75 Jun 22, 2026
- Increase text_block_h from 52 to 62 in crystal/donut renderers
- Extrapolate skill caps past level 75 instead of clamping
- Prevent false capped state when table cap < actual skill value
- Add Singing (40), String (41), Wind (42) for Bard at C rank

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@TreeFidyDad
TreeFidyDad force-pushed the treefidydad/fix-text-cutoff-bug branch from 76e34f3 to f434a7d Compare June 24, 2026 14:53
@TreeFidyDad
TreeFidyDad merged commit d095f90 into main Jun 24, 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