diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 22:46:43 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-15 22:46:43 +0000 |
commit | e7a22ae2c3721277180443d930d110edb7e180b8 (patch) | |
tree | 431769e55e76872ed810fb77b9a68da015a604a3 /crawl-ref/source/acr.cc | |
parent | dc0f066ad0fa14a48e652914b9a27e626f5eded1 (diff) | |
download | crawl-ref-e7a22ae2c3721277180443d930d110edb7e180b8.tar.gz crawl-ref-e7a22ae2c3721277180443d930d110edb7e180b8.zip |
Apply commit r6569 to 0.4 trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.4@6570 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r-- | crawl-ref/source/acr.cc | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index fbc4d3fd50..3dcb424d40 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -560,11 +560,11 @@ static void _handle_wizard_command( void ) { // This command isn't very exciting... feel free to replace. int i = prompt_invent_item( "Value of which item?", MT_INVLIST, -1 ); - if (i == PROMPT_ABORT || !is_random_artefact( you.inv[i] )) - { - canned_msg( MSG_OK ); + + if (prompt_failed(i)) break; - } + else if (!is_random_artefact( you.inv[i] )) + mpr("That item is not an artefact!"); else mprf("randart val: %d", randart_value(you.inv[i])); @@ -574,11 +574,9 @@ static void _handle_wizard_command( void ) { int i = prompt_invent_item( "Make an artefact out of which item?", MT_INVLIST, -1 ); - if (i == PROMPT_ABORT) - { - canned_msg( MSG_OK ); + + if (prompt_failed(i)) break; - } if (!_item_type_can_be_artefact(you.inv[i].base_type)) { @@ -680,11 +678,9 @@ static void _handle_wizard_command( void ) { // This command isn't very exciting but it's useful for debugging. int i = prompt_invent_item( "(Un)curse which item?", MT_INVLIST, -1 ); - if (i == PROMPT_ABORT) - { - canned_msg( MSG_OK ); + + if (prompt_failed(i)) break; - } item_def& item(you.inv[i]); |