summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
committerVsevolod Kozlov <zaba@thorium.homeunix.org>2009-12-27 19:25:32 +0300
commitdc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch)
treedadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/itemname.cc
parent507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff)
downloadcrawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz
crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 8d487d2682..c8ce048107 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1037,7 +1037,7 @@ std::string item_def::name_aux(description_level_type desc,
// this behaviour, *please* make it so that there is an option
// that maintains this behaviour. -- bwr
// Nor for artefacts. Again, the state should be obvious. --jpeg
- if (item_cursed(*this))
+ if (cursed())
buff << "cursed ";
else if (Options.show_uncursed && !know_pluses
&& (!know_type || !is_artefact(*this)))
@@ -1108,7 +1108,7 @@ std::string item_def::name_aux(description_level_type desc,
if (know_brand)
buff << weapon_brand_name(*this, terse);
- if (know_curse && item_cursed(*this) && terse)
+ if (know_curse && cursed() && terse)
buff << " (curse)";
break;
@@ -1197,7 +1197,7 @@ std::string item_def::name_aux(description_level_type desc,
case OBJ_ARMOUR:
if (know_curse && !terse)
{
- if (item_cursed(*this))
+ if (cursed())
buff << "cursed ";
else if (Options.show_uncursed && !know_pluses)
buff << "uncursed ";
@@ -1310,7 +1310,7 @@ std::string item_def::name_aux(description_level_type desc,
}
}
- if (know_curse && item_cursed(*this) && terse)
+ if (know_curse && cursed() && terse)
buff << " (curse)";
break;
@@ -1462,7 +1462,7 @@ std::string item_def::name_aux(description_level_type desc,
if (know_curse)
{
- if (item_cursed(*this))
+ if (cursed())
buff << "cursed ";
else if (Options.show_uncursed && !terse
&& (!is_randart || !know_type)