summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/godprayer.cc
diff options
context:
space:
mode:
authorChris Campbell <chriscampbell89@gmail.com>2014-05-09 16:33:06 +0100
committerChris Campbell <chriscampbell89@gmail.com>2014-05-09 16:35:08 +0100
commit9aa3c08c981a1fca82211580cff5005c4e70b884 (patch)
tree57c6455408ef2d48a2602f0135ad9248e14cf3a4 /crawl-ref/source/godprayer.cc
parent972d1c6c397abe9edb200b6652aa1277a75deb15 (diff)
downloadcrawl-ref-9aa3c08c981a1fca82211580cff5005c4e70b884.tar.gz
crawl-ref-9aa3c08c981a1fca82211580cff5005c4e70b884.zip
Improve display and messaging for Gozag's item duplication
Give a message if you pray over an unduplicatable item, and specify that artefacts are not allowed on the ^ screen.
Diffstat (limited to 'crawl-ref/source/godprayer.cc')
-rw-r--r--crawl-ref/source/godprayer.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/godprayer.cc b/crawl-ref/source/godprayer.cc
index 0e0b6e13cf..0bc3e46051 100644
--- a/crawl-ref/source/godprayer.cc
+++ b/crawl-ref/source/godprayer.cc
@@ -274,6 +274,7 @@ static bool _altar_prayer()
else if (you_worship(GOD_GOZAG) && !player_under_penance()
&& !you.one_time_ability_used[GOD_GOZAG])
{
+ bool found = false;
bool prompted = false;
for (stack_iterator j(you.pos()); j; ++j)
{
@@ -282,6 +283,7 @@ static bool _altar_prayer()
|| item_is_rune(*j)
|| j->base_type == OBJ_GOLD)
{
+ found = true;
continue;
}
@@ -316,6 +318,8 @@ static bool _altar_prayer()
}
if (prompted)
canned_msg(MSG_OK);
+ else if (found)
+ mprf("There's no item here that can be duplicated.");
return false;
}