summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 22:00:57 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-06 22:00:57 +0000
commitd40c13fe95764014009d8d27081913290ce1391f (patch)
tree399bce9bd18495516a1c470f2622753bd2a5b579 /crawl-ref/source/randart.cc
parent7d423aef8123a887cb2d3188206aeea9b628bd84 (diff)
downloadcrawl-ref-d40c13fe95764014009d8d27081913290ce1391f.tar.gz
crawl-ref-d40c13fe95764014009d8d27081913290ce1391f.zip
Remove some of my infamous debugging statements (I keep forgetting
them!) and move the new pdf files around, renaming contact.pdf to README.pdf since it's the shorter version of readme.txt, also capitalized now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6435 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index 63a85194a6..8d35c5f481 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -1309,11 +1309,13 @@ std::string randart_name(const item_def &item, bool appearance)
std::string lookup;
std::string result;
- // use prefix of gifting god, if applicable
+ // Use prefix of gifting god, if applicable.
bool god_gift = false;
int item_orig = 0;
- if (!appearance) // god prefix not necessary for appearance
+ if (!appearance)
{
+ // Divine gifts don't look special, so this is only necessary
+ // for actually naming an item.
item_orig = item.orig_monnum;
if (item_orig < 0)
item_orig = -item_orig - 2;
@@ -1351,7 +1353,7 @@ std::string randart_name(const item_def &item, bool appearance)
result += appear;
result += " ";
result += item_base_name(item);
- return result;
+ return (result);
}
if (_pick_db_name(item))