summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
Commit message (Collapse)AuthorAgeFilesLines
* Amulet of Faith, mark I.Darshan Shaligram2010-01-101-2/+12
| | | | | | | | | | | | | | Amulets of faith have these effects: - Piety gain is 1/3 faster. - Gods that protect from harm are more likely to do so (your piety is 1/3rd higher for such checks). - Xom piety walk is 1/3 faster. - Xom is more likely to act. - Removing the amulet leaches away some piety, but will never cause excommunication, or drop piety too close to excommunication. Amulets auto-id if the player already has a religion, or when the player acquires a religion while wearing the amulet.
* Tiles: Add icons for poisonous/mutagenic/... chunks or corpses.Johanna Ploog2010-01-091-3/+12
| | | | | | | I'm not sure how to visualize contaminated chunks, so they haven't got an icon yet (maybe use coagulated blood?) Also, I've opted to only show the icons for rotten chunks if the character is capable of eating them. Otherwise, them being rotten is all that's of interest to the player.
* Replace uses of item_cursed with item_def::cursed.Vsevolod Kozlov2009-12-271-1/+1
|
* tiles: only include tiledef-*.h in files where they're neededSteven Noonan2009-12-121-0/+4
| | | | | | | This eliminates the annoying full rebuild that happens when the tiledefs are modified. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Fix tiles compile (missing includes).Robert Vollmert2009-11-271-0/+1
|
* Convert get_item_glyph to return a glyph struct.Robert Vollmert2009-11-151-5/+3
| | | | 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
|
* 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
|
* Rename is_valid_item to item_def::is_valid.Vsevolod Kozlov2009-11-061-8/+8
| | | | Signed-off-by: Jude Brown <bookofjude@users.sourceforge.net>
* Split get_symbol from view.cc.Robert Vollmert2009-11-061-0/+1
|
* Split game_options from externs.h into options.h.Robert Vollmert2009-11-041-0/+1
|
* Splitting up stuff.cc.Robert Vollmert2009-10-301-0/+1
| | | | New: colour.cc, coord.cc, coordit.cc, random.cc, rng.cc.
* Prevent non-body armour from being made ponderous, it has no effect.Adam Borowski2009-10-221-0/+5
|
* versioning: remove SVN-specific revision data, add Git versioningSteven Noonan2009-10-181-1/+0
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* invent.{cc,h}: fix meaningless type qualifier on return typeSteven Noonan2009-10-131-6/+6
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* project-wide: implement use of platform.h detection macrosSteven Noonan2009-10-101-1/+1
| | | | Signed-off-by: Steven Noonan <steven@uplinklabs.net>
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Add a proper message for when the player isn't carrying any fruit.dolorous2009-09-221-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10772 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-09-201-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10748 c06c8d41-db1a-0410-9941-cceddc491573
* * Show item type shortcuts in inventory. I think it's too intrusive forj-p-e-g2009-09-141-5/+12
| | | | | | | | | | ASCII even though it works well in tiles. * Always display memorise button because it's less confusing that way. I still can't work out why the error messages disappear right away. *sighs* * Add a short document on tiles creation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10673 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's Feawn evolution update patch in [2841648], with a few dolorous2009-09-031-10/+8
| | | | | | | tweaks. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10615 c06c8d41-db1a-0410-9941-cceddc491573
* Apply caotto's plant god patch, for now named "Feawn".j-p-e-g2009-07-201-0/+10
| | | | | | | Also fix potions of porridge's menu colour being yellow for Mummies. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10355 c06c8d41-db1a-0410-9941-cceddc491573
* Fix the other part of [2823233]: Runes shouldn't be listed as wieldable dolorous2009-07-171-1/+1
| | | | | | | inventory items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10253 c06c8d41-db1a-0410-9941-cceddc491573
* Fix part of [2823233]: Runes shouldn't be listed as evokable inventory dolorous2009-07-171-2/+2
| | | | | | | items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10251 c06c8d41-db1a-0410-9941-cceddc491573
* * Moved most hard-coded non-standard unrandart behaviour to art-func.h,zelgadis2009-06-271-20/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | specifically code for equipping, unequpping, an equipped unrandart doing something every time world_reacts() is called (special wield effects), melee hit effects, and evoking. Left hardcoded outside of art-func.h: * Sword of Cerebov temproarily downgrading the defender's fire resistance. * Staff of Olgreb boosting poison spells, as if it were a staff of poison. * Vampire's Tooth always getting maximal vampiric drain. * Mace of Variablity's initial pluses being chosen at creation time. * Since what used to be special wield effects is now handled very differently, noisy weapons and the lantern of shadows effects are handled with player attributes rather than SPWLD_NOISES and SPWLD_SHADOW. * Unrandarts can now have an elemental colour for their colour (currently only used for the Mace of Variability). * Unrandarts' value modification, being special, and being evil are now handled in art-data.txt rather than being hardcoded. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10055 c06c8d41-db1a-0410-9941-cceddc491573
* Remove "#define SPWPN_FOOBAR UNRAND_FOOBAR" backwards compatibility forzelgadis2009-06-251-4/+4
| | | | | | | fixed-art brand_type enumerations. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10041 c06c8d41-db1a-0410-9941-cceddc491573
* First part of the merger of fixed artefacts into unrandom artefactszelgadis2009-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573
* Apply my recent commits to trunk.j-p-e-g2009-06-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9978 c06c8d41-db1a-0410-9941-cceddc491573
* Fix non-tiles build.dolorous2009-06-061-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9907 c06c8d41-db1a-0410-9941-cceddc491573
* Apply r9904 to trunk.j-p-e-g2009-06-061-4/+16
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9905 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2722830 and related changes:zelgadis2009-06-021-6/+0
| | | | | | | | | | | | | | | | | * Memorization now lists all spells in all carried books (minus spells which are already memorized or which can never be memorized because of the player's species), sorted by easy of memorization. * Miscast effects from failing to memorize from out of the Necronomicon, the book of Demonology and the book of Annihilations is commented out, pending figuring out how to do it with the new interface. * Spells which can't be memorized because of the player's species are highlighted as light red when reading a spell book, and a note is added when describing the spell. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9883 c06c8d41-db1a-0410-9941-cceddc491573
* Reduce screen-flicker and clearing of the message window when re-doing thezelgadis2009-05-281-7/+16
| | | | | | | | | | | previous command (`) (at least for actions involving selecting an item from inventory, selecting an ability to use, selecting a spell to cast, and selecting a spell to memorize). Not tested with the tiles build. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9839 c06c8d41-db1a-0410-9941-cceddc491573
* Add an option that controls whether the tiles build displays tiles inj-p-e-g2009-05-231-0/+3
| | | | | | | | | | menus or not. (Defaults to true.) Tiled menus may seem like a great feature (and I love them) but they can also be a bit confusing/distracting (though much less so now than they used to be), and I respect that. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9799 c06c8d41-db1a-0410-9941-cceddc491573
* Update tutorial information, inscription warnings and tooltips for wands j-p-e-g2009-05-041-3/+8
| | | | | | | and misc. items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9732 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2784872: Take off not working for wearing (with the option).j-p-e-g2009-05-021-0/+3
| | | | | | | | | | Also, add another item selector for worn armour for the takeoff prompt (and equip_unequip is false). I figured in the 'W'ear menu armour already worn takes up less space, and you're rather likely to directly switch to another piece of clothing. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9719 c06c8d41-db1a-0410-9941-cceddc491573
* Add new command for evoking non-wielded items, placed on 'V'.j-p-e-g2009-05-021-0/+103
| | | | | | | | | * Also applies to wand, and will soon replace 'Z'. * Decks, rods, and weapons of reaching still need to be wielded ('v'). * The tiles tooltips will need to be adjusted. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9718 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak Xom's ideas about what makes a funny or boring death.j-p-e-g2009-04-221-3/+2
| | | | | | | | | * Add another option (*sigh*) covering whether W=T and P=R. (Defaults to false.) * Various spacing and comment fixes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9675 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow viewing known items from "Use on what item?" scroll prompt.j-p-e-g2009-04-111-5/+23
| | | | | | | | * Default use_fake_cursor to true on Unix, else false. * Tweak some descriptions. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9594 c06c8d41-db1a-0410-9941-cceddc491573
* * After some thought, remove the description toggle from the spell menu asj-p-e-g2009-04-061-1/+1
| | | | | | | | | | the double toggle makes everything much more complicated, and you can easily access the spell descriptions from the very similar 'I' menu. * Don't offer weapons of unknown brand types for ?recharging. I tested a few combination cases, but I might have overlooked something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9589 c06c8d41-db1a-0410-9941-cceddc491573
* Make the toggle actually update the title for V and a.j-p-e-g2009-04-051-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9582 c06c8d41-db1a-0410-9941-cceddc491573
* [2722438] Fixing crash when viewing shop contents. shop_item* was being ↵ennewalker2009-03-311-1/+6
| | | | | | blindly casted to monsters*, which didn't play well with a non-existent virtual function table. Fixed by creating a ShopItemEntry and a MonstersMenuEntry class to differentiate the meaning of MenuEntry::data and to avoid crashes in the future by having MenuEntry::get_tiles() be a no-op. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9572 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix Xom's interest wrapping around from 0 to 255. (!!!)j-p-e-g2009-03-261-11/+33
| | | | | | | | | | | | | | | | * In xom_acts, if Xom was bored (and now did something bad) reroll interest. * Greatly decrease amusement derived from the player entering a new level. (However, entering a new level via escape hatch or shaft is REALLY amusing, more so the deeper the shaft.) * Xom may be amused if you are caught in a net and there are hostile monsters around. * Fix draconian tiles not showing up correctly for Detect Creatures. * Improve card descriptions output for Triple Draw/Stack Five. * In inventory, add '&' hotkey for useless (== inedible) chunks. Still needs documentation. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9557 c06c8d41-db1a-0410-9941-cceddc491573
* * Use menu colours (rather than message colours) for item announcementsj-p-e-g2009-03-251-2/+1
| | | | | | | | | | | | and the like. * Fix 'V' if there are more than 52 monsters/items in the list. * Make Xom act more often, with the probability depending strongly on tension. Also tweak a few action probabilities according to tension, so that e.g. summons are more likely for high tension. * Fix monsters being created with large quantities of curare needles. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9546 c06c8d41-db1a-0410-9941-cceddc491573
* * Allow viewing of card descriptions from Triple Draw and Stack Deck.j-p-e-g2009-03-231-3/+3
| | | | | | | | | | * Sort items in 'V' screen according to pickup menu sort order. * Name Xom's randart book gifts more randomly. * Colour items seen by 'x' with message colour tags and same for pickup messages. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9541 c06c8d41-db1a-0410-9941-cceddc491573
* * Add ability descriptions to the database search.j-p-e-g2009-03-201-2/+2
| | | | | | | | | | | | | | | | * Xom no longer gifts stuff that unquestionably makes for a more boring adventure (scrolls of Detect/Remove Curse, Magic Mapping, Identify; potion of cure mutation, amulet of resist mutation, ring of control teleport). * Xom's "niceness" is no longer automatically defined by his mood, but it's now randomly picked according to piety > random2(200), which translates to nice, else the opposite. A "beloved toy" is extremely likely to get nice effects, and vice versa for the "beloved plaything". * In xom_acts, instead of 50% chance for piety flip, there's now a 20% chance of piety being randomly rerolled. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9523 c06c8d41-db1a-0410-9941-cceddc491573
* * Change Roxanne's spells to include Blink Other (instead of Sandblast) j-p-e-g2009-03-191-2/+2
| | | | | | | | | | as spell to fall back on if all others are out of range. (Fixes 2686559.) * Fix 2690141: Tiles inventory leaking cursedness of items. * Fix 2687108: inappropriate message flushing during repeat command. * Fix opening/closing doors not updating exclusion los. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9516 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2687930: Shorten the spell menu more, and don't call update_title() j-p-e-g2009-03-161-18/+54
| | | | | | | | at '?' as apparently all it does is hide the first spell line. * Uncomment the autoinscription of weapons of distortion in init.txt. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9511 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix tiles 'V' crashing for mimics and dancing weapons.j-p-e-g2009-03-141-0/+6
| | | | | | | * Display wound/attitude overlays. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9480 c06c8d41-db1a-0410-9941-cceddc491573