Skip to content

Commit

Permalink
Handle units with skills over Legendary+5
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed May 21, 2015
1 parent 3e1aebd commit e6d9f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manipulator/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function skills.rating(unit, skill)
if exp == 0 and rating == 1 then
return 0
end
return rating
return math.min(rating, #SKILL_LEVELS)
end

OutputString = dfhack.screen.paintString
Expand Down

0 comments on commit e6d9f98

Please sign in to comment.