summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 23:44:02 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-12-07 23:44:02 +0000
commitcdd74d0b4618ad1f8f02ee18036283c6c2214b3d (patch)
tree10aad41074679ccdf7d78a953171482e81bc53a8 /crawl-ref/source/acr.cc
parentf4d7abfdc292ea48cc3fcd1a8c98e0f22abd28f6 (diff)
downloadcrawl-ref-cdd74d0b4618ad1f8f02ee18036283c6c2214b3d.tar.gz
crawl-ref-cdd74d0b4618ad1f8f02ee18036283c6c2214b3d.zip
Actually replace sold out shops with the new feature DNGN_ABANDONED_SHOP.
This makes comparisons much easier and also avoids giving away information about far away shops being opened/closed. (This was only an issue if a shop only held blood potions that rotted away, but still.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7775 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index c896fceb19..0b4ea44422 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -571,14 +571,14 @@ static void _do_wizard_command(int wiz_command, bool silent_fail)
mpr("Fake item as gift from which god (ENTER to leave alone): ",
MSGCH_PROMPT);
- char name[80];
+ char name[80];
if (!cancelable_get_line( name, sizeof( name ) ) && name[0])
{
god_type god = string_to_god(name, false);
if (god == GOD_NO_GOD)
mpr("No such god, leaving item origin alone.");
else
- {
+ {
mprf("God gift of %s.", god_name(god, false).c_str());
item.orig_monnum = -god;
}
@@ -591,7 +591,7 @@ static void _do_wizard_command(int wiz_command, bool silent_fail)
mpr("Failed to turn book into randart.");
break;
}
- }
+ }
else if (!make_item_randart( item ))
{
mpr("Failed to turn item into randart.");
@@ -1754,6 +1754,8 @@ static void _go_upstairs()
{
if (ygrd == DNGN_STONE_ARCH)
mpr("There is nothing on the other side of the stone arch.");
+ else if (ygrd == DNGN_ABANDONED_SHOP)
+ mpr("This shop appears to be closed.");
else
mpr("You can't go up here!");
return;