From fc901a9eedf400270f3a642dce1bbd554f8a5c22 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sun, 16 Sep 2007 06:22:42 +0000 Subject: Get &| (make unrand/fixed artefacts wiz command) to make the Horn of Geryon as well. Give more informative message when player tries to go through a stone arch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2106 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/acr.cc | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/acr.cc') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index b5d585bc6b..9921435574 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -521,6 +521,29 @@ static void handle_wizard_command( void ) move_item_to_grid( &islot, you.x_pos, you.y_pos ); } } + + // Create Horn of Geryon + { + int islot = get_item_slot(); + if (islot == NON_ITEM) + break; + + mitm[islot].base_type = OBJ_MISCELLANY; + mitm[islot].sub_type = MISC_HORN_OF_GERYON; + mitm[islot].plus = 0; + mitm[islot].plus2 = 0; + mitm[islot].special = 0; + mitm[islot].flags = 0; + mitm[islot].quantity = 1; + + set_ident_flags( mitm[ islot ], ISFLAG_IDENT_MASK ); + move_item_to_grid( &islot, you.x_pos, you.y_pos ); + + msg::streams(MSGCH_DIAGNOSTICS) << "Made " + << mitm[islot].name(DESC_NOCAP_A) + << std::endl; + } + break; case 'B': @@ -1163,7 +1186,10 @@ static void go_upstairs() } else if (grid_stair_direction(ygrd) != CMD_GO_UPSTAIRS) { - mpr( "You can't go up here!" ); + if (ygrd == DNGN_STONE_ARCH) + mpr("There is nothing on the other side of the stone arch."); + else + mpr( "You can't go up here!" ); return; } @@ -1176,7 +1202,10 @@ static void go_downstairs() { if (grid_stair_direction(grd(you.pos())) != CMD_GO_DOWNSTAIRS) { - mpr( "You can't go down here!" ); + if (grd(you.pos()) == DNGN_STONE_ARCH) + mpr("There is nothing on the other side of the stone arch."); + else + mpr( "You can't go down here!" ); return; } -- cgit v1.2.3-54-g00ecf