OSDN Git Service

Merge pull request #765 from sikabane-works/release/3.0.0Alpha17
[hengbandforosx/hengbandosx.git] / src / store / store.h
1 #pragma once
2
3 #include "system/angband.h"
4 #include "store/store-owners.h"
5 #include "store/store-util.h"
6
7  /* Store constants */
8 #define STORE_INVEN_MAX 24              /* Max number of discrete objs in inven */
9 #define STORE_TURNOVER  12              /* Normal shop turnover, per day */
10 #define STORE_MIN_KEEP  6               /* Min slots to "always" keep full */
11 #define STORE_MAX_KEEP  21              /* Max slots to "always" keep full */
12 #define STORE_SHUFFLE   21              /* 1/Chance (per day) of an owner changing */
13 #define STORE_TICKS     1000            /* Number of ticks between turnovers */
14
15 extern int store_top;
16 extern int store_bottom;
17 extern int xtra_stock;
18 extern const owner_type *ot_ptr;
19 extern s16b old_town_num;
20 extern s16b inner_town_num;
21
22 extern int cur_store_feat;
23 extern bool allow_inc;
24
25 s16b store_get_stock_max(STORE_TYPE_IDX store_idx, bool powerup = true);
26 void store_shuffle(player_type *player_ptr, int which);
27 void store_maintenance(player_type *player_ptr, int town_num, int store_num, int chance);
28 void store_init(int town_num, int store_num);
29 void store_examine(player_type *player_ptr);
30 int store_check_num(object_type *o_ptr);
31 int get_stock(COMMAND_CODE *com_val, concptr pmt, int i, int j);