From e6d9f98f3f0df2629fd69cfddeb4bd53afed7c4f Mon Sep 17 00:00:00 2001 From: lethosor Date: Thu, 21 May 2015 19:20:06 -0400 Subject: [PATCH] Handle units with skills over Legendary+5 --- manipulator/utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manipulator/utils.lua b/manipulator/utils.lua index 02dbae3..400f0f5 100644 --- a/manipulator/utils.lua +++ b/manipulator/utils.lua @@ -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