summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.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/spells2.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/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 4902786aa6..d765d4db5f 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1101,7 +1101,7 @@ bool cast_sticks_to_snakes(int pow, god_type god)
const int dur = std::min(3 + random2(pow) / 20, 5);
int how_many_max = 1 + random2(1 + you.skills[SK_TRANSMUTATIONS]) / 4;
- const bool friendly = (!item_cursed(wpn));
+ const bool friendly = (!wpn.cursed());
const beh_type beha = (friendly) ? BEH_FRIENDLY : BEH_HOSTILE;
int count = 0;
@@ -1712,7 +1712,7 @@ bool cast_tukimas_dance(int pow, god_type god, bool force_hostile)
if (success)
{
// Cursed weapons become hostile.
- const bool friendly = (!force_hostile && !item_cursed(you.inv[wpn]));
+ const bool friendly = (!force_hostile && !you.inv[wpn].cursed());
mgen_data mg(MONS_DANCING_WEAPON,
friendly ? BEH_FRIENDLY : BEH_HOSTILE,