diff options
author | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-16 06:22:42 +0000 |
---|---|---|
committer | zelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-09-16 06:22:42 +0000 |
commit | fc901a9eedf400270f3a642dce1bbd554f8a5c22 (patch) | |
tree | 95e0cdfa149decd92379d76c8d670f8d38c52592 /crawl-ref/source/acr.cc | |
parent | 2c172ba370ae4d28c72705f96e869480efd6d39f (diff) | |
download | crawl-ref-fc901a9eedf400270f3a642dce1bbd554f8a5c22.tar.gz crawl-ref-fc901a9eedf400270f3a642dce1bbd554f8a5c22.zip |
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
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 33 |
1 files changed, 31 insertions, 2 deletions
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; } |