summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
Commit message (Collapse)AuthorAgeFilesLines
* Fix a throwback to the 8-bit era in "Items here: +++ /// ))".Adam Borowski2010-01-131-2/+3
|
* Trim unnecessary #includes.Adam Borowski2010-01-131-2/+0
|
* [Mantis 331] Fix inverted chunk-stacking logic that caused missiles of ↵Darshan Shaligram2010-01-041-3/+5
| | | | different brands to stack (syllogism).
* Track all seen weapon/armour base types and their brands, for acq purposes.Adam Borowski2010-01-041-0/+1
|
* Let chunks stack, if their age is similar.Adam Borowski2010-01-041-3/+6
|
* Branded and positively enchanted missiles are "glowing". (Eronarn)Jude Brown2010-01-031-4/+0
|
* Ignore obscured items in the UIStefan O'Rear2009-12-301-2/+2
| | | | I probably missed a few spots.
* Killing a merfolk should not cause it to leap 10 feet into the air and drop ↵Stefan O'Rear2009-12-301-1/+8
| | | | its gear from a height.
* Don't generate splash messages twiceStefan O'Rear2009-12-301-2/+2
|
* Allow tiles to destroy only some items.Stefan O'Rear2009-12-301-13/+4
|
* Give move/copy_item_to_grid responsibility for hazardous terrainStefan O'Rear2009-12-291-8/+30
| | | | We now have much less duplication of logic, yay.
* Make item_is_mundane a method of item_def.Vsevolod Kozlov2009-12-271-0/+27
|
* Replace uses of item_cursed with item_def::cursed.Vsevolod Kozlov2009-12-271-2/+2
|
* Make item_is_critical a method of item_def.Vsevolod Kozlov2009-12-271-0/+15
|
* Replace static snprintf() with make_sprintf() where the result is ↵Adam Borowski2009-12-171-10/+5
| | | | | | immediately cast to std::string.
* Tidy up bracket placement according to our coding conventions.Johanna Ploog2009-12-101-2/+1
|
* Reduce dependency on travel.hMatthew Cline2009-11-291-0/+1
| | | | | | | | Removed inclusion of travel.h from most .h files to reduce the number of .cc files dependant on it. This involved moving the level_pos declaration to externs.h, moving the flood_find template to it's own header file, and moving two typedefs from travel.h to travel_defs.h because typedefs can't be forward declared (argh).
* Remove header includes from mon-place.h.Robert Vollmert2009-11-271-0/+1
|
* Remove further header-include. env.h now always directly included.Robert Vollmert2009-11-271-0/+1
|
* fix slot selection for picked up itemsJesse Luehrs2009-11-261-11/+12
|
* Don't assign food to 'e' and potions to 'y' unless that's the only slot left.Adam Borowski2009-11-251-7/+17
|
* Fix off-by-one error in mapping of rod subtypes to spellbook numbers.Vsevolod Kozlov2009-11-231-1/+1
|
* explore_stop: new condition greedy_pickup_thrownMatthew Cline2009-11-221-2/+10
| | | | | | | explore_stop condition greedy_pickup_smart no longer stops for items which were thrown by the player. The new condition greedy_pickup_thrown can be used by those who wish to stop auto-explore when thrown items are auto-pickup'd.
* Remove some exclamation marks.Robert Vollmert2009-11-211-1/+1
|
* Add formatting fixes.David Lawrence Ramsey2009-11-211-3/+3
| | | | This mostly puts && and || on the proper lines, per the style guide.
* Move silenced(pos) to areas.cc.Robert Vollmert2009-11-211-0/+1
|
* find_item_type(): recognize Orb of ZotMatthew Cline2009-11-201-1/+1
|
* explore_stop: greedy_pickup_smart, pickup_ignoreMatthew Cline2009-11-191-4/+219
| | | | | | | | | | | | | | | | | | | * Added the explore_stop option "greedy_pickup_smart", which is like greedy_pickup, but only stops for thrown items and items different than any in your inventory (and for fruit if you worship Fedhas). * Added the option explore_stop_pickup_ignore. Any items matching any of the regexes in the list will *not* cause "explore_stop = greedy_pickup" (or greedy_pickup_smart) to stop auto-explore. * "explore_stop = greedy_pickup" no longer stops when picking up gold. * "explore_stop = greedy_pickup" (or greedy_pickup_smart) now stops auto-explore after auto-pickup has happened, rather than right before it happens. * Removed obsolete ES_PICKUP.
* Fix apparent inconsistency.David Lawrence Ramsey2009-11-191-1/+1
|
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-1/+2
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Move tutorial state out of Options.Robert Vollmert2009-11-161-1/+1
|
* Convert get_item_glyph to return a glyph struct.Robert Vollmert2009-11-151-5/+4
| | | | Also don't use get_symbol.
* Remove #include <conio.h> from all over the place. Convert COLORS to an enum.Adam Borowski2009-11-141-4/+0
|
* Rename monspeak/monplace/monstuff to mon-speak/place/stuff.Jude Brown2009-11-121-2/+2
| | | | | I'm pretty sure I've managed to replace every instance of a reference to these files, so I hopefully haven't missed anything.
* Remove a few obsolete includes.Robert Vollmert2009-11-101-1/+0
| | | | Also add a few previously indirect includes.
* Remove some obsolete view.h-includes.Robert Vollmert2009-11-101-1/+0
|
* Split shouting and stealth code from view.cc.Robert Vollmert2009-11-101-0/+1
|
* CrawlHashTable: free memory on assignmentMatthew Cline2009-11-101-3/+0
| | | | | Free a CrawlHashTable's used memory when it's clobbered via being assigned to.
* CrawlHashTable: reduce RAM overheadMatthew Cline2009-11-101-0/+3
| | | | | | | The RAM overhead for an unused CrawlHash table has been reduced from 32 to 4 (on 32 bit systems), with an increased overhead of 4 bytes for ones which are used. This leads to a 35% RAM reduction for item_def instances with an unused props field.
* Split up debug.ccMatthew Cline2009-11-061-0/+541
|
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-35/+35
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split get_symbol from view.cc.Robert Vollmert2009-11-061-0/+1
|
* Split up view.cc.Robert Vollmert2009-11-041-0/+1
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Auto-update shopping-list when new items seenMatthew Cline2009-10-311-0/+2
| | | | | | Automatically update the shopping list if you see the same item for less cost in another shop, or if you get an item identical to one on the shopping list (currently only applies to jewellery, books and staves).
* FR 2839627: notify when player has enough goldMatthew Cline2009-10-291-1/+1
| | | | | | The basics of a wish-list/shopping-list. While in a shop the shopping-list can be modified, and the player is notified as soon as they have enough money to buy things on the shopping-list.
* Fix inconsistencies in gold-related messages.David Lawrence Ramsey2009-10-261-6/+6
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Naming consistency.Robert Vollmert2009-10-171-4/+4
| | | | | Mostly rename functions from terrain.h that accept features of typ dgn_feature_type from grid_is_* to feat_is_*.
* Remove deprecated map glyphs: S, H, Z.Adam Borowski2009-10-141-1/+1
|