From cdd74d0b4618ad1f8f02ee18036283c6c2214b3d Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 7 Dec 2008 23:44:02 +0000 Subject: 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 --- crawl-ref/source/acr.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/acr.cc') 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; -- cgit v1.2.3-54-g00ecf