summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
Commit message (Collapse)AuthorAgeFilesLines
* Brace and unbrace.Neil Moore2014-08-041-4/+0
|
* Fix Webtiles compilation.Florian Diebold2014-08-031-4/+5
| | | | Broken by cb4b6e1; the stash title is now unwrapped again in Webtiles.
* allow stash titles to wrap if they are too long (1260)Jesse Luehrs2014-08-031-31/+68
|
* Remove stuffNicholas Feinberg2014-07-291-1/+1
| | | | | | | .cc, moving its contents into the new stepdown.cc and strings.cc. (The latter also got many donations from libutil.h.) Down with stuff! Up the new flesh!
* Move redraw functions from stuff.cc -> output.ccNicholas Feinberg2014-07-281-0/+1
|
* More functionobjecticide.Neil Moore2014-07-131-54/+46
| | | | | If there is no state, function objects are usually just extra verbosity compared to a function pointer.
* Rename 'mesclr()' to 'clear_messages()'reaverb2014-06-221-1/+1
|
* Don't ignore rod max charge in stash comparisons.Neil Moore2014-06-071-1/+1
|
* Show visible changes to status of stack toppers.Neil Moore2014-06-071-6/+15
| | | | | | | | | | | | If two corpses were sitting on a visible square, ctrl-x would never show the rotting of the visible top corpse; and the stash tracker itself would show it as "rotten by now" even though we can actually see the corpse rotting. This also affects recharging rods since the previous commit. Now if the seen item and the remembered top item are "the same" but not identical (because of rotting, recharging, etc.), we update the stash anyway.
* Ignore rod charge in stash comparisons (#8652)Neil Moore2014-06-071-2/+4
|
* Remove royal jelliesreaverb2014-05-211-1/+1
| | | | | | Somebody else might want to review my vault changes - I mostly replaced them with honeycombs, which might be a problem, for example, in the Jiyva vaults.
* Formatting fixes (add braces).Neil Moore2014-05-121-0/+2
| | | | This fixes all the instances caught by unbrace.
* Be friendlier when searching for shops.Shmuale Mark2014-03-071-1/+10
| | | | | | | | | Currently, if the player searches for "shop", the stash screen shows a long list of items in shops, and after Orc there will be a great deal of junk on the screen. This commit checks whether a search only returns shops, and nothing on the floor or in shops ("shop" for example, or "gadget"). If so, it displays the shops in one stack by default.
* Fix swapped labels in Ctrl-F (minmay, wheals)Chris Oelmueller2014-03-051-1/+1
| | | | Broken by 0.14-a0-2083-gb79a34a - also fix the spacing to align left.
* Change default of filter_useless back to false (ChrisOelmueller).Shmuale Mark2014-03-041-1/+1
| | | | | | It was mostly just causing confusion when the only matching items were useless, and it was rather annoying when items that were only temporarily useless were being searched for.
* Automatically identify the last unknown item in relevant base types.Sage2014-01-271-0/+4
| | | | | | 'Relevant base types' are wands, staves, scrolls, potions, rings, amulets. (Various tweaks and cleanups by Medar)
* Change defaults of show_as_stacks and filter_useless in Ctrl-FChris Oelmueller2014-01-241-2/+2
| | | | | | | | | show_as_stacks used to hide some items behind rather unintuitive parens, and this has come up as actual problem more than once. filter_useless on the other hand used to spam you with many mostly irrelevant items and similarly suffered from the weird help line. The new settings are: show_as_stacks = false, filter_useless = true.
* Slightly revamp help header in Ctrl-FChris Oelmueller2014-01-241-11/+11
| | | | | | | | | The old one did really not help any player whatsoever, I tested with several new ones. Nobody was able to find out what it tried to convey. Hopefully this layout gets the important points across better now. What should also be changed are some of the defaults themselves. This might be addressed in a subsequent commit.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-3/+0
| | | | | Sometimes, they're there to emphasize a break between two sections of code, which is good. In a majority of cases, though, they're just inconsistent.
* Start using -Wredundant-decls; fix all the instances I getSamuel Bronson2013-12-121-1/+1
| | | | | That is, unless you count the ones in ncurses' headers, which I can't do anything except suppress.
* Save input history for the stash search promptPekka Lampila2013-12-051-0/+1
| | | | Has been gone since aa300c, 6 years ago.
* Special handling for repeat cmd prompt in WebTilesPekka Lampila2013-12-031-0/+2
| | | | Previously it was simply broken.
* Add MSG_OK when canceling search promptPekka Lampila2013-12-031-0/+3
|
* Replace `mpr(s, ch)` with `mprf(ch, s)`Adam Borowski2013-11-291-4/+4
| | | | | | | | | Also simplify quite a few cases. It turns out in >90% cases of non-literals the argument had .c_str(), which meant it was pointlessly malloc()ed and converted from and to std::string. I believe a sprintf is faster, so even the argument of miniscule speed-up doesn't apply.
* Do not stash track sealed staircases.blackcustard2013-11-221-0/+2
|
* More formatting fixes for return (...);Neil Moore2013-11-151-13/+13
|
* Drop unnecessary parentheses from return statements.Adam Borowski2013-11-151-18/+18
|
* Get rid of all external uses of get_los().Adam Borowski2013-11-051-1/+1
| | | | | This also fixes a bunch of "act through glass" or "doesn't obey nightstalker/ lantern of shadows" bugs.
* Axe a buttload of useless #includes.Adam Borowski2013-11-031-2/+0
| | | | | Can't test Android, MSVC or Mac, but a very brief glance at the diff suggests it's unlikely they're affected.
* Spacing fixes.Adam Borowski2013-10-061-1/+1
|
* Use qualname, not basename, in stash annotation (#3062)Neil Moore2013-09-281-1/+1
| | | | | | | | This was supposed to match singulars when the item was plural, but scrolls and potions did not include their subtype in DESC_BASENAME. This still won't let you search for "arrow of flame", since DESC_QUALNAME does not include brands.
* Drop some useless parentheses.Adam Borowski2013-09-081-1/+1
|
* Fix alignment of stash search header, cut two spaces.Neil Moore2013-08-281-3/+3
| | | | It should now fit into 80 and even 79 columns with up to 999 items.
* Fix whitespace.Neil Moore2013-08-281-3/+3
|
* Restore match count to search results and move toggle status into help textBlackSheep2013-08-281-18/+17
|
* Variable width menu title for stash search resultsBlackSheep2013-08-281-2/+10
|
* Add toggle to filter useless items from search resultsBlackSheep2013-08-281-17/+105
|
* More padding fixes for ternary operatorChris Oelmueller2013-08-031-2/+2
|
* Refactor 'you.religion' checks.Brendan Hickey2013-07-281-1/+1
| | | | | Pull 'you.religion [!=]= FOO' checks into a function: you_worship(FOO). This change is part of a large plan to clean up religion.
* Improve handling of menu titles in WebTilesPekka Lampila2013-06-071-11/+21
|
* Refactor ASSERT(a && b) -> ASSERT(a); ASSERT(b);Brendan Hickey2013-04-281-1/+2
| | | | | | | Convert conjunctive assertions into separate assertions. This ought to be correctness preserving. I ran the stress tests and didn't notice anything unusual. While I have confidence in it, if you are the slightest bit suspicious of this, please roll it back. Found instances with `ASSERT(\([^(|]*\) && \([^)|]*\))` Manually inspected each instance.
* Show (unknown) in shopping list and stash trackerPekka Lampila2013-04-251-2/+4
| | | | | This is for identified items in shops that are not yet identified by the player. Was already shown in actual shop menu.
* Webtiles: Fix the ? key in stash search (#6630).Florian Diebold2013-03-131-0/+1
|
* Omit full stops in stash-search feature descriptions (Napkin)Neil Moore2013-01-311-1/+4
|
* Allow toggling stack to expand shop inventory in search results.Raphael Langella2013-01-141-18/+34
| | | | Search for "shop" and press - to quickly see all available goods on the market.
* Clarify !/? key in stash search menu.Neil Moore2012-12-281-2/+3
| | | | | | | Since there are only two actions (travel and examine), display the name of the inactive action rather than just the word "action". This should provide a bit more of an on-screen hint as to how to view shop contents (suggested by raistware).
* Unify menu_colour_item_prefix and filtering_item_prefix.Adam Borowski2012-12-271-2/+1
| | | | | The only reason for this madness was so searching for "ident" doesn't find identified items.
* Indentation fixes.Adam Borowski2012-12-051-5/+5
|
* Fix stash tracking (rwbarton).Neil Moore2012-11-121-1/+1
|
* Crudely clean up some explicit stash code.Adam Borowski2012-11-131-16/+4
|