Apply Yelve Yakut's patch to improve the shop interface. Selecting stuff

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

Created by  j-p-e-g  on July 14, 2008
25EF5X4H3LURXFZ35ZGYGUB6ND7NFQVH4M2XX2SI33I4XRGYG5HAC
Change contents