summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* Added new commands "re-do previous command" (bound to `) and "repeatzelgadis2007-09-191-0/+1
| | | | | | | | | | next command" (bound to 0). Though this is just an interface change, it changes code in the core input processing function (input() in acr.cc), and also messes around with the input buffer, so it could probably do with more testing before merging it into the 0.3 branch. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2137 c06c8d41-db1a-0410-9941-cceddc491573
* Split off portions of externs.h and enum.h into other files. Thezelgadis2007-09-151-0/+3
| | | | | | | | | | | | | crawl_environment, player and monsters classes have been left in externs.h, which necessitates that all of the enums references by those classes stay in enums.h, since you can't forward declare an enum. However, it's a start. Also, portions of misc.{cc,h} have been split off into traps.{cc,h}, place.{cc,h} and terrain.{cc,h} git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2095 c06c8d41-db1a-0410-9941-cceddc491573
* Applying patches 1793701 (dolorous), 1793683 and 1793679 j-p-e-g2007-09-131-2/+6
| | | | | | | | | (both zelgadis), and 1793603 (ennewalker). Also default yesno() when choosing a religion to 'no'. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2080 c06c8d41-db1a-0410-9941-cceddc491573
* A few general fixes:j-p-e-g2007-09-101-1/+4
| | | | | | | | | Fix 1791185: Memory overrun. Patch provided by ennewalker. Fix 1789803. Again, patch by ennewalker. Fix 1790486: Throwing nets and launchers. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2063 c06c8d41-db1a-0410-9941-cceddc491573
* Fixing more bugs.j-p-e-g2007-09-051-2/+58
| | | | | | | | | | | | 1788159: Mummy priests don't get potions either. 1787377: Lugonu's Banish doesn't work on self 1786808: More feedback for travelling. 1784235: Randomized staff descriptions. 1774996: /random effect autoIDs for fireball 1768803: Extended inscription warning use. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2057 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented patch 1773718 (improved wizard commands) andj-p-e-g2007-09-021-7/+95
| | | | | | | patch 1783003 (ímproved menu sorting), both by zelgadis. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2041 c06c8d41-db1a-0410-9941-cceddc491573
* Several bugfixes.j-p-e-g2007-08-301-1/+8
| | | | | | | | | | | | | | | | | | In no particular order: + Beogh shouldn't care about you attacking non-orc friends. + Mummies don't get "Food" listed as ability costs. + corrected order of invis flickering + modified (and tidied) you_can_wear checks and output + added ']' command to list currently worn equipment (inv) + wielded cursed items can no longer be fired + Wanderers no longer get inappropriate armour + Fixed "bad item" message for confirm-inscribed items + copied "Discharge" to "Static Discharge" in spells.txt (Maybe we should remove the first, but I was unsure about that, so I left it for now.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2035 c06c8d41-db1a-0410-9941-cceddc491573
* Yet another tutorial updatej-p-e-g2007-08-161-7/+12
| | | | | | | ... and Sif Muna finally gets those other titles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2007 c06c8d41-db1a-0410-9941-cceddc491573
* Inscribing now only works for items in inventory.j-p-e-g2007-08-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2002 c06c8d41-db1a-0410-9941-cceddc491573
* Oops, missed s/jewelry/jewellery/ when reverting other changes.dshaligram2007-08-091-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1984 c06c8d41-db1a-0410-9941-cceddc491573
* Drop and pickup menus now support Ctrl-F to select all items matching a regex.haranp2007-07-021-2/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1716 c06c8d41-db1a-0410-9941-cceddc491573
* Push item weights to the right of the inventory menu.dshaligram2007-06-281-1/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1683 c06c8d41-db1a-0410-9941-cceddc491573
* You can now examine items from the inventory view.haranp2007-06-251-2/+10
| | | | | | | Fixed a bug with item_type_known (oops.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1649 c06c8d41-db1a-0410-9941-cceddc491573
* Fix for 1739988: fully_identified() was mishandling known types.haranp2007-06-251-0/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1645 c06c8d41-db1a-0410-9941-cceddc491573
* sort_menus now allows the user to choose what menus to sort, and how todshaligram2007-05-311-7/+155
| | | | | | sort items, at the cost of obfuscating the sort_menus option massively. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1494 c06c8d41-db1a-0410-9941-cceddc491573
* Refix for 1719721: what I thought was a simple fix in InvEntry turnedharanp2007-05-171-1/+10
| | | | | | | | out to be a bug...We might want a 'bool inv_prefix' argument to name(), or an appropriate description_type. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1479 c06c8d41-db1a-0410-9941-cceddc491573
* Minor cleanups.haranp2007-05-151-23/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1477 c06c8d41-db1a-0410-9941-cceddc491573
* Nemelexites now require confirmation before offering runes, orbs, orharanp2007-05-151-2/+2
| | | | | | | | | objects marked with !p (or !*) on a non-altar square. Nothing gets offered unless the player OKs everything, so inscribing a couple of items in your stash with !p should be enough paranoia. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1476 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented Nemelex's 'sneak peek' ability.haranp2007-05-111-4/+4
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1453 c06c8d41-db1a-0410-9941-cceddc491573
* Type safety, cast cleanups, etc.haranp2007-05-011-8/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1401 c06c8d41-db1a-0410-9941-cceddc491573
* Added a show_inventory_weights option (defaults to false), followingharanp2007-04-291-11/+18
| | | | | | | 1629320. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1393 c06c8d41-db1a-0410-9941-cceddc491573
* More minor cleanups.haranp2007-04-271-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1378 c06c8d41-db1a-0410-9941-cceddc491573
* Along the lines of 1706790: the identify inventory list now only containsharanp2007-04-241-0/+2
| | | | | | | items which aren't fully IDed by default. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1360 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up shop-handling code considerably.haranp2007-04-241-6/+2
| | | | | | | | | | | | | Instead of shops passing around global id_arr arrays, shops use the newly added third argument to item_def::name() which indicates whether to override item ID status. This means that the shop ID SIGHUP protection is now unnecessary; it's been removed. Hopefully I caught all the places where the stash tracker tries to get item names and fixed them, but I might have missed something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1359 c06c8d41-db1a-0410-9941-cceddc491573
* Eliminated it_name(), in_name(), item_name(). The function to use isharanp2007-04-211-11/+12
| | | | | | | | now item_def::name(). Cleaned up a lot of code in the process. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1341 c06c8d41-db1a-0410-9941-cceddc491573
* Kill hard tabs.dshaligram2007-03-061-12/+12
| | | | | | redraw_dexterity now implies redraw_evasion. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@987 c06c8d41-db1a-0410-9941-cceddc491573
* Fix pickup and stash-search menus having unselectable items if there are lotsdshaligram2007-01-111-0/+4
| | | | | | of items, and the term is taller than 52 lines. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@833 c06c8d41-db1a-0410-9941-cceddc491573
* [1629452] Show unburdened carrying capacity. Weights exceeding this will showdshaligram2007-01-091-1/+1
| | | | | | up as >100%, which is fine by me. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@810 c06c8d41-db1a-0410-9941-cceddc491573
* [1616535] Fixed broken inscription hotkeying with auto_list.dshaligram2006-12-171-1/+1
| | | | | | Fixed interlevel travel prompt ugliness. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@654 c06c8d41-db1a-0410-9941-cceddc491573
* Set item pointer on SelItem wherever possible.dshaligram2006-12-101-1/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@606 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed 1612023: !d was not respected. Now dropping items with !d willharanp2006-12-091-17/+23
| | | | | | | | ask for confirmation for each item and abort multidrop if it receives a negative answer to anything. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@602 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed class name for staves.dshaligram2006-12-081-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@598 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed bug where Pandemonium demonlords did not get their rightful runesdshaligram2006-12-081-2/+2
| | | | | | | | | (Cerebov and company) - bug was introduced circa 0.1.3. [1610237] Vaults can request specific items using ITEM: declarations and the item selectors defghijk. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@596 c06c8d41-db1a-0410-9941-cceddc491573
* [1610676] Fixed confirmation inscriptions not working with auto_list.dshaligram2006-12-071-7/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@588 c06c8d41-db1a-0410-9941-cceddc491573
* [1605400] Fixed inability to wield stuff when carrying no weapons.dshaligram2006-11-301-3/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@531 c06c8d41-db1a-0410-9941-cceddc491573
* Implemented 1601230: sort_menus can now be of the form auto:5 (the default),haranp2006-11-221-1/+2
| | | | | | | in which case categories with >= 5 items will be sorted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@476 c06c8d41-db1a-0410-9941-cceddc491573
* Goodbye, gold dropping. We wish thee well.haranp2006-11-221-2/+2
| | | | | | | | If I misunderstood and this is still up for debate, my apologies and please revert. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@462 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-565/+430
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+1027
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573