summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/shopping.h
blob: 48ad569d6afa18e0b7d3aec962df1bd26246bcbf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 *  File:       shopping.h
 *  Summary:    Shop keeper functions.
 *  Written by: Linley Henzell
 *
 *  Modified for Crawl Reference by $Author$ on $Date$
 *
 *  Change History (most recent first):
 *
 *               <1>     -/--/--        LRH             Created
 */


#ifndef SHOPPING_H
#define SHOPPING_H

#include "externs.h"
#include "itemname.h"

int randart_value( const item_def &item );

// ident == true overrides the item ident level and gives the price
// as if the item was fully id'd
unsigned int item_value( item_def item, bool ident = false );
void shop();

shop_struct *get_shop(int sx, int sy);

std::string shop_name(int sx, int sy);
std::string shop_name(int sx, int sy, bool add_stop);

bool shoptype_identifies_stock(shop_type type);

#endif