summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-12 18:02:26 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-05-12 18:02:26 +0000
commit45b96dcd54a2e8f506aa829f168fa16bd16c53b4 (patch)
tree752908864ac8db428b8b943cf4fc099b4034dde6 /crawl-ref/source/items.cc
parent8b9d48402b36f994893ab627cf9cf7b0be632d20 (diff)
downloadcrawl-ref-45b96dcd54a2e8f506aa829f168fa16bd16c53b4.tar.gz
crawl-ref-45b96dcd54a2e8f506aa829f168fa16bd16c53b4.zip
Removed obsolete ALLOW_DESTROY_ITEM_COMMAND.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1469 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc65
1 files changed, 0 insertions, 65 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 1d9075b82c..46a52914dc 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -3082,71 +3082,6 @@ item_def find_item_type(object_class_type base_type, std::string name)
return (item);
}
-#ifdef ALLOW_DESTROY_ITEM_COMMAND
-// Started with code from AX-crawl, although its modified to fix some
-// serious problems. -- bwr
-//
-// Issues to watch for here:
-// - no destroying things from the ground since that includes corpses
-// which might be animated by monsters (butchering takes a few turns).
-// This code provides a quicker way to get rid of a corpse, but
-// the player has to be able to lift it first... something that was
-// a valid preventative method before (although this allow the player
-// to get rid of the mass on the next action).
-//
-// - artefacts can be destroyed
-//
-// - equipment cannot be destroyed... not only is this the more accurate
-// than testing for curse status (to prevent easy removal of cursed items),
-// but the original code would leave all the equiped items properties
-// (including weight) which would cause a bit of a mess to state.
-//
-// - no item does anything for just carrying it... if that changes then
-// this code will have to deal with that.
-//
-// - Do we want the player to be able to remove items from the game?
-// This would make things considerably easier to keep weapons (esp
-// those of distortion) from falling into the hands of monsters.
-// Right now the player has to carry them to a safe area, or otherwise
-// ingeniously dispose of them... do we care about this gameplay aspect?
-//
-// - Prompt for number to destroy?
-//
-void cmd_destroy_item( void )
-{
- int i;
-
- // ask the item to destroy
- int item = prompt_invent_item( "Destroy which item? ", -1, true, false );
- if (item == PROMPT_ABORT)
- return;
-
- // Used to check for cursed... but that's not the real problem -- bwr
- for (i = 0; i < NUM_EQUIP; i++)
- {
- if (you.equip[i] == item)
- {
- mesclr( true );
- mpr( "You cannot destroy equipped items!" );
- return;
- }
- }
-
- // ask confirmation
- snprintf( info, INFO_SIZE, "Destroy %s? ",
- you.inv[item].name(DESC_NOCAP_THE).c_str() );
-
- if (yesno( info, true ))
- {
- //destroy it!!
- mprf( "You destroy %s.",
- you.inv[item].name(DESC_NOCAP_THE).c_str() );
- dec_inv_item_quantity( item, you.inv[item].quantity );
- burden_change();
- }
-}
-#endif
-
////////////////////////////////////////////////////////////////////////
// item_def functions.