summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-18 16:59:42 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-04-18 16:59:42 +0000
commit40e6cec1c6f46027dc07110dde8b14248f728d05 (patch)
treef76be2906df62230276e5d9742662be95a8180fc /crawl-ref/source/describe.cc
parent0cb617b22114c0dbf9cdc39a980e5695309661ab (diff)
downloadcrawl-ref-40e6cec1c6f46027dc07110dde8b14248f728d05.tar.gz
crawl-ref-40e6cec1c6f46027dc07110dde8b14248f728d05.zip
Deep dwarves get the same number of initial strength points as mountain
dwarves, so give their ghosts the same strength bonus that mountain dwarves get. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9627 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc21
1 files changed, 12 insertions, 9 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 618a671b66..38062331d1 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2967,10 +2967,12 @@ std::string get_ghost_description(const monsters &mons, bool concise)
// stats aren't required anyways, all that matters is whether
// dex >= str. -- bwr
const int dex = 10;
- int str;
+ int str = 5;
+
switch (gspecies)
{
case SP_MOUNTAIN_DWARF:
+ case SP_DEEP_DWARF:
case SP_TROLL:
case SP_OGRE:
case SP_MINOTAUR:
@@ -2979,25 +2981,24 @@ std::string get_ghost_description(const monsters &mons, bool concise)
case SP_NAGA:
case SP_MUMMY:
case SP_GHOUL:
- str = 15;
+ str += 10;
break;
case SP_HUMAN:
case SP_DEMIGOD:
case SP_DEMONSPAWN:
- str = 10;
+ str += 5;
break;
default:
- str = 5;
break;
}
gstr << ghost.name << " the "
- << skill_title( ghost.best_skill,
- (unsigned char)ghost.best_skill_level,
- gspecies,
- str, dex, ghost.religion )
+ << skill_title(ghost.best_skill,
+ (unsigned char)ghost.best_skill_level,
+ gspecies,
+ str, dex, ghost.religion)
<< ", a"
<< ((ghost.xl < 4) ? " weakling" :
(ghost.xl < 7) ? "n average" :
@@ -3008,6 +3009,7 @@ std::string get_ghost_description(const monsters &mons, bool concise)
(ghost.xl < 27) ? "n awesomely powerful"
: " legendary")
<< " ";
+
if (concise)
{
gstr << get_species_abbrev(gspecies)
@@ -3020,13 +3022,14 @@ std::string get_ghost_description(const monsters &mons, bool concise)
<< " "
<< get_class_name(ghost.job);
}
+
if (ghost.religion != GOD_NO_GOD)
{
gstr << " of "
<< god_name(ghost.religion);
}
- return gstr.str();
+ return (gstr.str());
}
extern ability_type god_abilities[MAX_NUM_GODS][MAX_GOD_ABILITIES];