summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.h
Commit message (Collapse)AuthorAgeFilesLines
* prompt for stasis in between swapping amulets too (8708)Jesse Luehrs2014-08-031-0/+1
|
* Disallow eating off the ground for non-vampires.Shmuale Mark2014-07-021-1/+1
| | | | | It makes the 'e' key less consistent for no obvious benefit. Not to mention that it's incredibly unsanitary.
* Plus2: Combine all three enchant weapon scrollsChris Oelmueller2014-06-141-4/+2
| | | | | | | | | | | | | | | New item is just called "scroll of enchant weapon". It increases both accuracy and damage by 1. Enchant weapon III scrolls have been converted to stacks of 2 enchant weapon scrolls where placed in vaults, and if already generated will act like a common "scroll of enchant weapon" as well for sake of simplicity. Scroll weights have been adjusted a bit; this almost certainly needs to be revisited. [Committer's note: merged a few commits into this, where it seemed sensible. Also reworked the scroll weights, but yeah, that needs another pass.]
* Fix weapon listing for god blessingsChris Campbell2014-06-121-0/+1
| | | | | | Not sure if there's a better way of doing this but now all valid weapons are listed for blessing - previously ranged weapons would be listed but only valid under TSO.
* Remove player burden and carrying capacitygammafunk2014-05-261-2/+0
| | | | | | | | | | | Item inventory weights (based on item mass) generally don't lead to meaningful decisions that justify the inventory juggling and interface problems that come from having burden states. The 52-slot limit is a better system for limiting inventory and providing inventory-related decisions because it's not so fine-grained and doesn't require the player to examine weights for each slot. Work is ongoing to improve the slot system by consolidating food types and handling strategic consumables in a different way.
* Improve enchant weapon selection (#8407, #8552)Neil Moore2014-05-131-1/+3
| | | | | | | | | | | Now you are not prompted for, or allowed to select, weapons which are enchantable but not by this scroll---for example, a +9,+0 weapon with EW_I. Take care to handle blowguns correctly: they have no +dam, but EW_II increases their +acc. The message "You aren't carrying any weapons that can be enchanted." isn't quite right anymore, but I can't think of a good way to make it more pendant-friendly without being too wordy.
* Remove two unused object_selectors.Shmuale Mark2014-05-021-10/+8
|
* Add the ability to sort by dbname to sort_menus.bones2014-04-291-0/+2
|
* Fix amulet of faith prompting twice sometimes when removing it (qw).elliptic2014-03-291-1/+2
| | | | | | | | | | | There were two separate issues that could cause this. First, when wearing at least one ring as well as the amulet, it would give the prompt once when choosing the amulet to remove and then again when actually removing it. Second, prompts were sometimes checked right before calling remove_ring() and then again inside remove_ring(), for instance when swapping to a different amulet. I think this fixes it without breaking anything else.
* Show inventory weights only for pickup/drop by default.Neil Moore2014-03-191-0/+2
| | | | | | | | Add a third, default, value for show_inventory_weights, to enable weights for pick-up and drop menus only. Ctrl-W continues to toggle weight display in the current menu, but is no longer persistent from one menu to the next.
* Remove `auto_list` optionChris Oelmueller2014-03-111-2/+2
| | | | | | | | | | | | | It has been defaulting to `true` for a while now. That setting provides a nicer interface overall and there is little reason to support alter- nate input methods. Some prompts asking for a letter have not been adjusted, for example evoking a rod with multiple spells. Those are hopefully gone soon anyways. [Committer's note: The option had no known uses except by bots, and those could work without it. And, of course, multi-spell rods are gone.]
* Allow the player to choose a weapon when reading an enchant weapon scroll.Shmuale Mark2014-02-271-0/+2
| | | | | | | | There isn't really any reason not to (the only cases where this causes any significant change are the brands with unwield effects). It does have the positive effect that the scroll-id game is made slightly less tedious, since you don't have to remember to switch to a weapon you want enchanted first.
* Coding styleChris Oelmueller2013-12-091-10/+10
|
* Remove unused parameter from prompt_failedChris Oelmueller2013-12-091-1/+1
|
* Simplify butchery handlingChris Campbell2013-12-061-6/+0
| | | | | | Butchery is always allowed except in a few forms (bat, wisp, fungus). Removes a lot of unnecessary/unused code for swapping weapons and removing equipment when butchering.
* Fix shop menu not shown after inventory (#7706)Pekka Lampila2013-12-021-2/+1
| | | | Happened in WebTiles only.
* Make scrolls of vorpalise weapon target a weapon without having to wield itMarvinPA2013-08-211-0/+1
| | | | | | | | | Makes it more easily and obviously cancellable, and allows cancelling the scroll without spending a turn and losing it (if it was already identified). Doesn't use the same selection menus as enchant armour, identify and recharging - since it tends to show up much later it'd almost always be known anyway (and the point here is to make it harder to accidentally remove a brand you want).
* Don't use menu_sort option for (un)known item menuPekka Lampila2013-05-211-1/+1
| | | | Same thing for the found runes menu.
* Revert "Prevent selecting inventory items that cannot be used, including ↵Adam Borowski2013-04-261-4/+2
| | | | | | | | | | | | | | | | | | | | | melded items for scrolls" Doing this in the filter causes severe regressions: * no failure messages are given anymore. This includes cases that are unobvious to new players, like, say, why that bright green or red chunk is inedible. * if a chunk rots without you noticing, the menu interface will consume any keys you pressed subsequently, making you waste permafood. This can happen for other item types too, it's just chunks being ingrained so hard into muscle memory that people don't read prompts carefully. Having the menu filter duplicate the work is not good either, but until this mess is refactored, the filter has not enough data. Proposed interface: const char* why_not_use(CMD_EAT, item) which returns null if you can actually use the item. This reverts commit bab355256aed893ee730059d95111987b32c3815.
* Filter inventory to valid targets for unidentified scrollPete Hurst2013-03-311-0/+1
| | | | Only enchantable armour, unidentified items, and rechargeable wands/rods now listed
* Prevent selecting inventory items that cannot be used, including melded ↵Pete Hurst2013-03-311-1/+3
| | | | items for scrolls
* Unify menu_colour_item_prefix and filtering_item_prefix.Adam Borowski2012-12-271-1/+1
| | | | | The only reason for this madness was so searching for "ident" doesn't find identified items.
* Remove unnecessary includes from header files.Jay3.14152012-10-231-1/+0
| | | | | | | | | | For most header files, this only saves on having to recompile a small number of source files, but there are also a few headers where small changes would now take significantly less time. This is most obvious for the Tiles build for which the dependencies have been greatly reduced, so that the only additional includes when compared to console are strictly library or tile related.
* Use std namespace.Raphael Langella2012-08-261-38/+34
| | | | | | | | | | | | | I had to rename distance() (in coord.h) to distance2() because it conflicts with the STL function to compare 2 iterators. Not a bad change given how it returns the square of the distance anyway. I also had to rename the message global variable (in message.cc) to buffer. I tried to fix and improve the coding style has much as I could, but I probably missed a few given how huge and tedious it is. I also didn't touch crawl-gdb.py, and the stuff in prebuilt, rltiles/tool and util/levcomp.*, because I have no clue about those.
* Add more item types to the AP menu.Jon Knapp2012-08-011-0/+2
| | | | | | | | This is a combination of 4 commits: added food and misc items to the AP menu catagorized foods in the AP menu and added gold reduced food categories to two small autopickup menu bugfixes
* Don't display feature backgrounds in most item menus.Neil Moore2012-07-061-1/+3
| | | | | | | | | | | | Now most item menus, such as the pick-up and stash menus, use the same background tile as inventory slots. This is in part to reduce clutter and make the item easy to see, but also to avoid showing the wrong background tile for off-level items. Only Ctrl-X still displays the feature, for consistency with monsters in the same menu. Fixes #2303, #5756.
* Make the autopickup menu less hackish.Jon Knapp2012-07-051-0/+1
| | | | | | Ctrl-D and comma no longer exit and re-enter the menu. Also, use '^' rather than ',' for reset-all-to-default.
* Don't break autopickup menu with easy_exit_menu = true.Neil Moore2012-07-051-0/+1
| | | | | | | | | | | Because we used MF_EASY_EXIT as a hack for regenerating the menu, the user's easy_exit_menu option would prevent leaving the menu. Instead use lastch == CONTROL('R') to indicate that the menu should be re-entered, and respect the user's easy_exit_menu setting. Unfortunately, easy_exit_menu was disallowed when anything is selected, to prevent leaving e.g. the drop menu too soon. Override this behaviour for MT_KNOW inventory menus.
* Display cursor in autopickup menu.Neil Moore2012-07-051-1/+3
|
* Formatting fixes.Raphael Langella2012-06-091-1/+2
|
* Autopickup menu.Thann2012-06-091-2/+2
| | | | Signed-off-by: Raphael Langella <raphael.langella@gmail.com>
* Make another bunch of functions static or gone.Adam Borowski2012-04-051-15/+0
|
* Don't show item prices on DYWYPI.Adam Borowski2012-01-061-12/+1
| | | | They don't have any effect on score anymore.
* Implement dedicated Menu support for Webtiles.Florian Diebold2011-12-081-1/+1
| | | | | | This is just for menus using the Menu class. It means that the menu items are laid out in html on the client side, the menu size adapts to the window of each spectator, and scrolling is done client-side.
* Make prompt_invent_item handle case where only relevant item is excluded.Samuel Bronson2011-11-271-1/+1
|
* drop and pickup menu display new burden statekittel2011-10-281-1/+2
|
* Replace the unknown skill dance by skill training restrictions.Raphael Langella2011-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | There's no more restriction on training unknown skills. By default, they are disabled in manual mode and enabled in auto mode, but they can be freely toggled if restrictions are met. A skill can be trained if there's any available mean of exercising it. Fighting, throwing, dodging, stealth, stabbing, T&D, UC and spellcasting can always be trained. Weapon skills require carrying a weapon of the type. Armour requires wearing an armour with an evasion penalty. Shields needs either wearing a shield, knowing condensation shield or being able to cast it from a rod of warding or having the divine shield ability. Evocations requires carrying an evocable item, or having a Nemelex ability. Spell schools require knowing a spell of the school (Necromancy can be trained with having a Kiku ability). Invocations requires having any divine ability that exercises it. For edge cases, requirements are a bit loose. No need to carry missiles to train throwing (or it disables itself when you run out), no minimum spell success, no cap on skill level with buckler and leather for example.
* On click, unwield weapons of reaching instead of evoking them (#4581).Raphael Langella2011-09-211-2/+3
|
* Make Cheibriados' slowness passive.Adam Borowski2011-09-161-17/+16
| | | | | | | | | | | | | | | | | This deals with problems with races with few or no slots that can be ponderified, removes the problem of Octopodes shedding all their slowness in 20 aut, and fixes the issue of losing +5 to all stats just to bad luck hunting for that glove or hat. There's a buff in that Cheibriadites may now use randarts, and nerf in that they can no longer disrobe to gain speed. Items ponderified with the ability is reverted to their normal state (enchantable, corrodeable, ...), ponderousness goes back to its old status of a very bad platemail brand / unrand property. You may at most use it for a miniscule speed-up in gaining Chei's piety -- and even that I consider to be bad. After all, a lazy person would do anything but exercise wearing overencumbering armour.
* Fix a std::string.c_str() going out of scope crash.Adam Borowski2011-08-101-1/+1
| | | | There's no point in using a std::string here at all.
* Allow searching by equipment slot.Raphael Langella2011-07-211-0/+1
| | | | | The keywords are: cloak helmet gloves boots shield body
* First prototype of webtiles.Florian Diebold2011-06-261-1/+1
| | | | | | Conflicts: crawl-ref/source/startup.cc
* Better butchering messages.Raphael Langella2011-04-291-0/+6
| | | | | | | | | Pass the butchering tool into the delay. Had to increase the number of delay parameters to 3. There's no more switching messages. Only: "You start butchering the foo corpse with your bar." and: "You finish ripping/chopping the foo corpse into pieces."
* Allow Ashenzarites to choose which piece of armour/jewellery to curse.Raphael Langella2011-04-011-0/+2
| | | | | | Only once the scroll is known. They can also cancel it and it does automatically if you're not wearing any elligible item. Non-Ash worshippers can still use them any time to victory dance spellcasting.
* Make file headers doxygen-friendly, drop useless fields.Adam Borowski2011-03-281-5/+4
| | | | | | | "File:" is shown in your editor's status bar. "Written by:" was used only for the first person who changed a file. We got git for that now, and pre-DCSS history is so woefully inaccurate it doesn't really matter.
* Add a #define SLOT_BARE_HANDS for weapon unwield.Raphael Langella2011-01-261-0/+2
| | | | | | | This replace the very hacky PROMPT_GOT_SPECIAL that was used for unwielding. This commit also fix what appears to be a bug in l_item_do_remove which called wield_weapon with -1 instead of -2 causing a weapon swap instead of unwielding. I can't test it, because I don't know what calls it.
* Add an item_is_wieldable() function.Raphael Langella2011-01-251-0/+1
| | | | This remove some duplication.
* Replace the menu_cursor option by automagicRaphael Langella2010-11-221-0/+2
| | | | Happy birthday David :)
* Massive spacing fixes: "( spaces after parentheses )".Adam Borowski2010-10-151-11/+11
| | | | | | I did review it manually to find places where they made sense (like some tables), but for a massive sed job like this there might be places that I missed.
* Ashenzari: for scrolls of Remove Curse, ask for a set of worn items to uncurse.Adam Borowski2010-10-111-0/+1
|