diff options
author | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
---|---|---|
committer | Vsevolod Kozlov <zaba@thorium.homeunix.org> | 2009-12-27 19:25:32 +0300 |
commit | dc3e12a4da48363a7cadb77f30b8e784d5f82acf (patch) | |
tree | dadef79197a359e2c24a68a32284b6b6c79eb536 /crawl-ref/source/tutorial.cc | |
parent | 507c3523d54cd2c15185f06f8be1f1ea353497d8 (diff) | |
download | crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.tar.gz crawl-ref-dc3e12a4da48363a7cadb77f30b8e784d5f82acf.zip |
Replace uses of item_cursed with item_def::cursed.
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 7f6bc68bc8..69aeb760a2 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -1549,7 +1549,7 @@ static bool _cant_butcher() if (!wpn || wpn->base_type != OBJ_WEAPONS) return false; - return (item_cursed(*wpn) && !can_cut_meat(*wpn)); + return (wpn->cursed() && !can_cut_meat(*wpn)); } static int _num_butchery_tools() @@ -3012,7 +3012,7 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc) int wpn = you.equip[EQ_WEAPON]; if (wpn != -1 && you.inv[wpn].base_type == OBJ_WEAPONS - && item_cursed(you.inv[wpn])) + && you.inv[wpn].cursed()) { // Don't trigger if the wielded weapon is cursed. Tutorial.tutorial_events[seen_what] = true; |