summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.h
Commit message (Collapse)AuthorAgeFilesLines
* Move a little more code out of misc.ccNicholas Feinberg2014-07-021-0/+4
|
* Gozag: Call Merchant.Steve Melenchuk2014-05-071-0/+1
| | | | | | | | | Pay half the value of items in one of three randomly generated shops to generate that shop on a level that can generate shops that you haven't visited yet. This shop appears on the Overview screen with a darkened level name so you know exactly where it appeared, and is announced (and its location marked) when you arrive on the level so long as you are still following Gozag at the time.
* Drop double newlines where they seem to serve no purpose.Adam Borowski2013-12-211-1/+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.
* Update shopping list price when item is identifiedPekka Lampila2013-12-111-0/+1
|
* Show (unknown) in shopping list and stash trackerPekka Lampila2013-04-251-0/+1
| | | | | This is for identified items in shops that are not yet identified by the player. Was already shown in actual shop menu.
* Use std namespace.Raphael Langella2012-08-261-13/+12
| | | | | | | | | | | | | 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.
* Allow shopping in disconnected levels.Neil Moore2012-07-081-0/+2
| | | | | Items are removed from the shopping list when the level they are on is deleted.
* Make some functions static/gone.Adam Borowski2012-06-021-1/+0
|
* Make a few functions static/gone.Adam Borowski2012-04-271-1/+0
|
* Make a bunch of functions static, delete some unused junk.Adam Borowski2011-11-111-1/+0
|
* Bad consumables are treated as valueless for sacrificial purposes.Nathaniel Rook2011-07-051-0/+5
| | | | Signed-off-by: David Ploog <dploog@users.sourceforge.net>
* cppcheck: fix inefficient checking for emptiness.Adam Borowski2011-07-051-0/+1
| | | | | On some STL structures size() is slow. I did not bother limitting sed, so innocent bystanders got pulled into the machine, but there's no loss.
* 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.
* Feature mimics!Jude Brown2010-10-101-0/+2
| | | | | | | | | | | | | | | | | | | | | Still to-do: * Tiles, properly. * Traps aren't randomised like shops currently are. * Generation should place door mimics instead of doors, sometimes. * Portal vault mimics don't have proper descriptions. * Use different types of fountains. * Use different types of stairs! Done: * Doors will snap closed at you when damaging. * Fountains will splash you when damaging. * Door mimics are "as big as a door", and so-on. Everything should, actually, in theory, work properly. I'm sure there's a lot of bugs, but I'm very happy by the "being chased by doors" thing. If you want to test these in wizmode, use &m521 through &m526 (door, portal, trap, stair, shop, fountain).
* [1437] Fix shopping list ASSERT after removing items from list (MarvinPA).Darshan Shaligram2010-06-301-0/+1
|
* Get rid of ambiguous longs from CrawlHashTable and a lot of misc places.Adam Borowski2010-06-201-2/+2
|
* Handle traps and shops correctly when shifting the abyss.Darshan Shaligram2010-06-061-0/+3
|
* ShoppingList: deal better with mult identical itemMatthew Cline2009-11-281-0/+3
|
* ShoppingList: pass level_pos* as constMatthew Cline2009-11-271-6/+7
|
* Fix deleting entries from shopping list.Matthew Cline2009-11-271-0/+3
|
* Bug #51: Remove gone portals from shopping listMatthew Cline2009-11-271-0/+1
|
* Flatten header dependencies a bit.Robert Vollmert2009-11-171-1/+0
| | | | | | This removes a couple of unnecessary includes from header files. I may have missed adding some tiles includes.
* Access shopping list via '$'Matthew Cline2009-11-011-1/+1
| | | | | | If you have anything on your shopping list, pressing '$' will display it as a menu. You can then select a thing from the menu, either to travel to it or examine it, like with the stash tracker menu.
* Auto-update shopping-list when new items seenMatthew Cline2009-10-311-5/+11
| | | | | | 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-0/+55
| | | | | | 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.
* Split actors and env from externs.h.Robert Vollmert2009-10-211-2/+2
|
* Drop obsolete CVS last-committed headers ($Author$).Adam Borowski2009-10-061-2/+0
|
* Since fixed artefacts are going to be folded into unrandarts, and unrandartszelgadis2009-06-081-1/+1
| | | | | | | | | | | have already become almost identical to randarts, change "randart" to "artefact" everywhere except for things that deal exclusively with randarts. Artefact related files will be renamed later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9921 c06c8d41-db1a-0410-9941-cceddc491573
* Fix assertion when buying items from shops.zelgadis2009-01-201-0/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8622 c06c8d41-db1a-0410-9941-cceddc491573
* Actually replace sold out shops with the new feature DNGN_ABANDONED_SHOP.j-p-e-g2008-12-071-1/+0
| | | | | | | | | 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
* Add tiles for disturbance in shallow water (only preliminary since youj-p-e-g2008-12-071-0/+1
| | | | | | | | 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
* Remove pre-Stone Soup change history from source files, and push it allj-p-e-g2008-09-141-4/+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
* Massive change from using x and y to using coord_defs(). Not quite tested,haranp2008-07-221-3/+3
| | | | | | | | 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
* [Bug 1907221] Add "Modified for Crawl Reference" statement and author to aj-p-e-g2008-03-081-1/+1
| | | | | | | | huge number of files. Also correct file name comments. No coding changes. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
* &L can place encompass levels, and is more aggressive about overwritingdshaligram2007-07-291-1/+1
| | | | | | | | existing dungeon features. Dungeon features of importance - such as stairs, shops, and altars - and map markers are shifted out of the way, to the nearest free floor square. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1947 c06c8d41-db1a-0410-9941-cceddc491573
* Updated level-design.txt.dshaligram2007-07-211-0/+1
| | | | | | | | | | | Moved map markers to mapmark.cc. Added support for timer markers that remove a feature after a certain timeout. Need to hook up messaging to Lua. Added bazaars (need more bazaar layouts). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1899 c06c8d41-db1a-0410-9941-cceddc491573
* Minor type-safety.haranp2007-07-141-1/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1862 c06c8d41-db1a-0410-9941-cceddc491573
* More strings instead of char*s.haranp2007-06-181-5/+1
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1599 c06c8d41-db1a-0410-9941-cceddc491573
* Cleaned up shop-handling code considerably.haranp2007-04-241-36/+3
| | | | | | | | | | | | | Instead of shops passing around global id_arr arrays, shops use the newly added third argument to item_def::name() which indicates whether to override item ID status. This means that the shop ID SIGHUP protection is now unnecessary; it's been removed. Hopefully I caught all the places where the stash tracker tries to get item names and fixed them, but I might have missed something. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1359 c06c8d41-db1a-0410-9941-cceddc491573
* The stash-tracker also needs shop SIGHUP protection.dshaligram2007-01-171-0/+22
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@859 c06c8d41-db1a-0410-9941-cceddc491573
* Fixed id array being clobbered if Crawl receives SIGHUP with the player in adshaligram2007-01-171-3/+0
| | | | | | shop. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@858 c06c8d41-db1a-0410-9941-cceddc491573
* Merged stone_soup r15:451 into trunk.dshaligram2006-11-221-0/+2
| | | | git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
* Clean up a mistake in the SVN import.nlanza2006-08-131-0/+49
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10 c06c8d41-db1a-0410-9941-cceddc491573