summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tutorial.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r--crawl-ref/source/tutorial.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc
index 6893f64262..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;
@@ -4440,7 +4440,7 @@ static void _tutorial_describe_cloud(int x, int y)
if (ctype == CLOUD_NONE)
return;
- std::string cname = cloud_name(ctype);
+ std::string cname = cloud_name(env.cgrid(coord_def(x, y)));
std::ostringstream ostr;