summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.cc
Commit message (Collapse)AuthorAgeFilesLines
* Backport oos mouseover descriptions for Tiles, corpses not being droppedj-p-e-g2009-09-211-4/+20
| | | | | | | inside walls, and LRD not working at low levels. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@10768 c06c8d41-db1a-0410-9941-cceddc491573
* Comment fixes.dolorous2009-05-231-2/+0
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9806 c06c8d41-db1a-0410-9941-cceddc491573
* Fix shopping messages mentioning "0 gold piece", and fix reading dolorous2009-05-181-14/+14
| | | | | | | unidentified scrolls of immolation counting as attacking friends. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9793 c06c8d41-db1a-0410-9941-cceddc491573
* Add minor cosmetic fixes.dolorous2009-05-171-7/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9789 c06c8d41-db1a-0410-9941-cceddc491573
* Adjust the value of large rocks again, after looking at the comparative dolorous2009-05-171-0/+2
| | | | | | | values of giant clubs and giant spiked clubs. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9788 c06c8d41-db1a-0410-9941-cceddc491573
* When using Elyvilon's weapon destruction against missiles, count each dolorous2009-05-171-1/+1
| | | | | | | | | missile individually, as we do with Nemelex already. Also, increase the value of large rocks; they're mundane, but they do massive damage, so they should be worth more than ordinary darts or stones. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9787 c06c8d41-db1a-0410-9941-cceddc491573
* * For flavour, let Xom laugh himself silly whenever a follower dies.j-p-e-g2009-03-191-1/+1
| | | | | | | | | | | | * Fix Xom being amused about rotten corpses being butchered. (As opposed to clean corpses becoming rotten while butchered, which is how it was originally intended.) * Xom no longer is amused if you deliberately hit yourself with a missile/wand/spell in safe surroundings. (Identifying wands that way or zapping /random effects is still considered amusing.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9519 c06c8d41-db1a-0410-9941-cceddc491573
* * Tweak shop command help for Tiles.j-p-e-g2009-03-151-9/+8
| | | | | | | | | * Hook card descriptions into database. This is far from optimal at the moment, e.g. searching for the portal card returns the Portal spell as best match. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9497 c06c8d41-db1a-0410-9941-cceddc491573
* Slight modification of the shop interface. In console mode, the last twodploog2009-03-151-8/+8
| | | | | | | | | | lines (explaining the available keys) are now aligned. Left the tiles output unchanged as far as possible; could someone still look at a shop in tiles? (Also added another ziggurat vault.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9490 c06c8d41-db1a-0410-9941-cceddc491573
* * Call message flush before entering a shop.j-p-e-g2009-03-131-2/+3
| | | | | | | * Indent shopping commands correctly. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9455 c06c8d41-db1a-0410-9941-cceddc491573
* * Add tile for Nergalle, who's actually not all that ugly but apparently j-p-e-g2009-03-091-72/+67
| | | | | | | | | | | has a really bad fashion sense. * Add a sticky flame marker for monsters. * Replace the trapdoor spider tile with a less original, but nicer one. * Improve shopping interface: replace "examine item" command with a toggle between browsing and shopping. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9397 c06c8d41-db1a-0410-9941-cceddc491573
* * Fix 2644253: mgrd bogosity with shafts.j-p-e-g2009-02-271-1/+6
| | | | | | | | | | * Fix wizmode regex "dismiss monster" command &G only dismissing monsters in sight. * Make fixed level randart books a bit more expensive depending on spell level. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9258 c06c8d41-db1a-0410-9941-cceddc491573
* Minor fix.j-p-e-g2009-02-161-4/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9102 c06c8d41-db1a-0410-9941-cceddc491573
* Fix randart books being much too cheap. (Yes, this was actually a bug.)j-p-e-g2009-02-161-7/+21
| | | | | | | | A randart book's rarity is now defined as the average of its three rarest spells. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9101 c06c8d41-db1a-0410-9941-cceddc491573
* Add whitespace fixes.dolorous2009-02-121-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9038 c06c8d41-db1a-0410-9941-cceddc491573
* Redo potions of magic again. They are now effectively potions of heal woundsharanp2009-02-081-2/+0
| | | | | | | | | | for MP; there is never any max-MP gain. Classes no longer influence max MP. Instead, you get an extra MP point for each level of Spellcasting between 1 and 5. (This might be too good.) Invocations does not get this boost. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8981 c06c8d41-db1a-0410-9941-cceddc491573
* [2577409]: minor improvements to the shopping interface.haranp2009-02-081-2/+7
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8979 c06c8d41-db1a-0410-9941-cceddc491573
* Various cleanups. (I can't run tiles, but it compiled fine, so I hope I didn'tharanp2009-01-271-21/+21
| | | | | | | introduce a subtle bug.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8811 c06c8d41-db1a-0410-9941-cceddc491573
* Fix crash on seeing shop which I introduced in r8742. Fixes [2536472].haranp2009-01-261-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8775 c06c8d41-db1a-0410-9941-cceddc491573
* Code quality fixes.haranp2009-01-251-37/+29
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8742 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-01-221-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8701 c06c8d41-db1a-0410-9941-cceddc491573
* In the shopping code, add price modifiers for weapons of returning, dolorous2009-01-221-10/+63
| | | | | | | | branded and racial missiles (of the former, only those that are currently randomly generated), and scrolls of vulnerability. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8698 c06c8d41-db1a-0410-9941-cceddc491573
* Remove some unneeded externs.haranp2009-01-211-1/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8660 c06c8d41-db1a-0410-9941-cceddc491573
* Fix assertion when buying items from shops.zelgadis2009-01-201-0/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8622 c06c8d41-db1a-0410-9941-cceddc491573
* Add more minor cosmetic fixes.dolorous2009-01-171-5/+5
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8490 c06c8d41-db1a-0410-9941-cceddc491573
* Adding REVISION() macro to all source files.ennewalker2009-01-041-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8217 c06c8d41-db1a-0410-9941-cceddc491573
* Actually replace sold out shops with the new feature DNGN_ABANDONED_SHOP.j-p-e-g2008-12-071-9/+8
| | | | | | | | | This makes comparisons much easier and also avoids giving away information about far away shops being opened/closed. (This was only an issue if a shop only held blood potions that rotted away, but still.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7775 c06c8d41-db1a-0410-9941-cceddc491573
* Erase closed shops from the overmap.j-p-e-g2008-12-071-0/+6
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7773 c06c8d41-db1a-0410-9941-cceddc491573
* Add tiles for disturbance in shallow water (only preliminary since youj-p-e-g2008-12-071-4/+13
| | | | | | | | can only recognize them if you're looking for them), and for closed shops. Move statue tiles into monster folder. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7767 c06c8d41-db1a-0410-9941-cceddc491573
* Non-weighted themed randart spellbooks, and prices for randart spellbooks.zelgadis2008-12-051-0/+21
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7746 c06c8d41-db1a-0410-9941-cceddc491573
* Add some chaos attacks/weapons. Missiles and launchers of chaos fire a bolt ofzelgadis2008-12-011-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | a random type (including enchantments, which isn't so good since they don't have a visible beam). Might want to add BEAM_CHAOS and make it a beam of that. Weapons of chaos either does a random brand effect (fire, poison, etc) or a random chaos effect (which includes cloning the attack victim). The AF_CHAOS monster attack flavour either does a random monster flavour or chaos effect (same chaos effects as for weapons). The relative frequency of all the different effects/brands/flavours no doubt needs adjustment. All of this is currently only available via Xom. 10% of all common-type demons sent in by Xom will be chaos spawn (the only kind that use AF_CHAOS, and never randomly generated otherwise). All item gifts from Xom which are generated with a brand will have their brand switched to chaos (this should probably be made to happen less than 100% of the time). And finally one of Xom's bad acts is to upgrade a non-branded weapon of a nearby hostile monster to a chaos brand (this might need to be made less (or more) common). Oh, and if a randart has a brand which would be identified if it were merely an ego weapon, it now identifies the RAP_BRAND property of the randart. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7704 c06c8d41-db1a-0410-9941-cceddc491573
* Changed player attribute type from unsigned char to unsigned long. Breakszelgadis2008-11-291-0/+2
| | | | | | | | | | | | | savefile compatibility. Keep track of how much gold the player has collected, spent at shops, donated, and otherwise used (like at ziggurats) and include that info in the misc section of the character dump file. Place-holder for chaos spawn monster. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7683 c06c8d41-db1a-0410-9941-cceddc491573
* Remove message about which items you bought in a shop as that'sj-p-e-g2008-11-221-28/+13
| | | | | | | automatically noted now. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7539 c06c8d41-db1a-0410-9941-cceddc491573
* Add miscellaneous minor fixes.dolorous2008-11-181-3/+3
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7476 c06c8d41-db1a-0410-9941-cceddc491573
* Add a few apostrophe-related cleanups.dolorous2008-10-131-2/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7234 c06c8d41-db1a-0410-9941-cceddc491573
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-6/+0
| | | | | | | | | | into a file crawlhistory.txt in docs/obsolete. I used a perl script to do this under the assumption that all these change logs used the same system following the keyword "Change History". git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6930 c06c8d41-db1a-0410-9941-cceddc491573
* Automatically inscribe randart weapons/armour with their properties whenj-p-e-g2008-08-061-3/+8
| | | | | | | wielding/wearing it for the first time. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6786 c06c8d41-db1a-0410-9941-cceddc491573
* * Note items bought in shops along with their pricej-p-e-g2008-08-061-14/+29
| | | | | | | | | | | * Note donations made to Zin * Add option autoinscribe_randarts that, if true, autoinscribes artefacts of its own whenever some new properties become known, be it by using it or identifying. Also applies to shops. This is still unfinished and buggy. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6785 c06c8d41-db1a-0410-9941-cceddc491573
* FR 2026227: Make $ list current gold.j-p-e-g2008-08-011-3/+14
| | | | | | | | FR 2027307: Use menu colours for shops, with an option to turn it off to get the striped menu again. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6750 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2033249: endgame and shop inventory browsing didn't allow examiningharanp2008-07-301-1/+1
| | | | | | | items. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6737 c06c8d41-db1a-0410-9941-cceddc491573
* Massive overhaul to move towards coord_def().haranp2008-07-301-8/+7
| | | | | | | | | | This might have introduced some bugs: I now get intermittent crashes on startup (this might have to do with the changes to special_room.) Sorry about that - committing before I need to do any more big conflict resolutions. Fixes coming later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6732 c06c8d41-db1a-0410-9941-cceddc491573
* Fix 2028969: excess comma in autoinscriptions of brand-only artefacts.j-p-e-g2008-07-271-3/+8
| | | | | | | | | | | | | | | | | Also: Tweak inscription prompt. Fix 2027600: Don't prompt when attacking with inappropriate weapon while confused. Fix 2027328: Throwing projectiles at enslaved monsters. When saccing to Nemelex, count chunks and !blood like corpses (deck of summoning rather than wonder). Chunks used to be ignored completely but since they're just chopped up corpses and corpses are worth much more than 4 per piece I don't think it hurts. (Rotten chunks have a value of zero.) Also, decrease !blood price to that of !porridge and lower. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6700 c06c8d41-db1a-0410-9941-cceddc491573
* Massive change from using x and y to using coord_defs(). Not quite tested,haranp2008-07-221-12/+13
| | | | | | | | most likely broken in some places and might break tiles. Will fix in the near future. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6636 c06c8d41-db1a-0410-9941-cceddc491573
* Fix dangling inscription for coagulated blood.j-p-e-g2008-07-151-23/+18
| | | | | | | | Properly use settings to decide whether to pick up useless or inedible stuff rather than forcing autopickup to be forbidden. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6554 c06c8d41-db1a-0410-9941-cceddc491573
* Apply Yelve Yakut's patch to improve the shop interface. Selecting stuffj-p-e-g2008-07-141-48/+182
| | | | | | | | | | | | | | | | | | | | | | | now works like the drop or pickup menu (or like a cart in any shop in RL, if you will) in that you can add or remove stuff, and the game will even tell you how much you have left and what else you can afford. Very cool stuff! Known bugs: * Since you now buy a lot of stuff at the same time and there's a shortage of space in the shopping interface I've merged all bought items into one line (using comma_separated_line). This has the unintended side effect that you can no longer note which items you bought because this message can be longer than a single line. Rather than printing each bought item on a single line, I'd rather add a NOTE_BOUGHT case that is optional and also tracks what you paid for said item. * If you buy several packages of the same item type, the output doesn't yet merge them, so you'll get "You bought 1 potion of heal wounds, 1 potion of healing, and 1 potion of heal wounds." git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6545 c06c8d41-db1a-0410-9941-cceddc491573
* For jewellery with pluses and wands, only make an ident note when thezelgadis2008-06-191-1/+1
| | | | | | | | | | | | first item of the type is identified, not when the charges/pluses of any item of the type is identified. Make sure that artefacts have nothing to do with the identification level of jewellery by making versions of set_ident_type() and get_ident_type() which accept a full item_def as a parameter. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5973 c06c8d41-db1a-0410-9941-cceddc491573
* Use the menu item colour prefixes with note_items, so that (for example)zelgadis2008-06-141-0/+6
| | | | | | | | | | | you can only note identified books, or you can note picking up unidentified randarts. When an item is bought from a shop, mpr() a line about the item, so that you can use note_messages to keep note of everything you've bought. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5811 c06c8d41-db1a-0410-9941-cceddc491573
* Added "error" channel for runtime errors, and changed error messages thatzelgadis2008-05-271-1/+1
| | | | | | | | | used the "danger" or "warning" channels to use that. Sending an error message to the error channel has the side effect of interrupting all activity. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5276 c06c8d41-db1a-0410-9941-cceddc491573
* Finally fix 1868761: Books in shops being noted as identified over andj-p-e-g2008-05-201-15/+18
| | | | | | | | | | | over again (when searching stashes). Also remove my recently added NOTE_FOUND_ORB_OR_RUNES in favour of the previously existing NOTE_GET_ITEM. Also I've noticed that this is probably already listed in the "milestones" - but what on earth are they? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5150 c06c8d41-db1a-0410-9941-cceddc491573
* Fix BR 1959133 (Shiori): change Ancus to Ankus.dploog2008-05-161-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5085 c06c8d41-db1a-0410-9941-cceddc491573