diff options
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index cc9e8f8e8d..62f5b2023c 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -20,6 +20,8 @@ #include "AppHdr.h" #include "skills2.h" +#include <algorithm> + #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -2018,10 +2020,10 @@ std::string skill_title( unsigned char best_skill, unsigned char skill_lev, species = you.species; if (str == -1) - str = you.strength; + str = std::max(you.strength - stat_modifier(STAT_STRENGTH), 1); if (dex == -1) - dex = you.dex; + dex = std::max(you.dex - stat_modifier(STAT_DEXTERITY), 1); if (god == -1) god = you.religion; |