summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--crawl-ref/source/AppHdr.h4
-rw-r--r--crawl-ref/source/acr.cc6
-rw-r--r--crawl-ref/source/items.cc65
3 files changed, 0 insertions, 75 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index b390230841..01ff994e96 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -330,10 +330,6 @@
// mv: (new 9 Aug 01) turns off missile trails, might be slow on some computers
// #define MISSILE_TRAILS_OFF
-// bwr: allow player to destroy items in inventory (but not equipped items)
-// See comment at items.cc::cmd_destroy_item() for details/issues.
-// #define ALLOW_DESTROY_ITEM_COMMAND
-
// bwr: set this to non-zero if you want to know the pluses, "runed" status
// of the monster's weapons in the hiscore file.
// #define HISCORE_WEAPON_DETAIL 1
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 909e33c039..05de6baea4 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -1352,12 +1352,6 @@ void process_command( command_type cmd )
check_item_knowledge();
break;
-#ifdef ALLOW_DESTROY_ITEM_COMMAND
- case CMD_DESTROY_ITEM:
- cmd_destroy_item();
- break;
-#endif
-
case CMD_REPLAY_MESSAGES:
replay_messages();
redraw_screen();
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.