Skip to content

Commit b07e018

Browse files
authored
Merge pull request #1233 from quietust/skills-progress
Fix skills-progress, use correct field for rust
2 parents e12aa9a + ecb28fe commit b07e018

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.txt

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Template for new versions:
3333
## Fixes
3434
- `full-heal`: fix ``-r --all_citizens`` option combination not resurrecting citizens
3535
- `open-legends`: don't intercept text bound for vanilla search widgets
36+
- `gui/unit-info-viewer`: correctly display skill levels when rust is involved
3637

3738
## Misc Improvements
3839

internal/unit-info-viewer/skills-progress.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function SkillProgressOverlay:onRenderFrame(dc, rect)
110110
table.insert(annotations, NEWLINE)
111111
end
112112
local level_color = COLOR_WHITE
113-
local rating_val = math.max(0, skill.rating - skill.demotion_counter)
114-
if skill.demotion_counter > 0 then
113+
local rating_val = math.max(0, skill.rating - skill.rusty)
114+
if skill.rusty > 0 then
115115
level_color = COLOR_LIGHTRED
116116
elseif skill.rating >= df.skill_rating.Legendary then
117117
level_color = COLOR_LIGHTCYAN

0 commit comments

Comments
 (0)