diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-30 22:48:14 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-10-30 22:48:14 +0000 |
commit | 729187802bdeec65565d5024b7ef0df7e53e715a (patch) | |
tree | 26d29ab11bf83660add51049e09062b7e3d14359 /crawl-ref/source/skills2.cc | |
parent | 3845e58bd6712c5ee75ca4a74f0a1813c94b09e4 (diff) | |
download | crawl-ref-729187802bdeec65565d5024b7ef0df7e53e715a.tar.gz crawl-ref-729187802bdeec65565d5024b7ef0df7e53e715a.zip |
Unarmed title is based on base, not modified, stats [1821727]
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2694 c06c8d41-db1a-0410-9941-cceddc491573
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 79ea20dd57..4d7a7bc9d6 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> @@ -2017,10 +2019,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; |