3 #include "system/angband.h"
5 #define MAX_LINELEN 1024
6 #define MAX_AUTOPICK_DEFAULT 200
7 #define MAX_YANK MAX_LINELEN
11 #define PT_WITH_PNAME 1
13 #define MARK_MARK 0x01
14 #define MARK_BY_SHIFT 0x02
16 #define LSTAT_BYPASS 0x01
17 #define LSTAT_EXPRESSION 0x02
18 #define LSTAT_AUTOREGISTER 0x04
21 * @struct autopick_type
22 * @brief 自動拾い/破壊設定データの構造体 / A structure type for entry of auto-picker/destroyer
25 concptr name; /*!< 自動拾い/破壊定義の名称一致基準 / Items which have 'name' as part of its name match */
26 concptr insc; /*!< 対象となったアイテムに自動で刻む内容 / Items will be auto-inscribed as 'insc' */
27 BIT_FLAGS flag[2]; /*!< キーワードに関する汎用的な条件フラグ / Misc. keyword to be matched */
28 byte action; /*!< 対象のアイテムを拾う/破壊/放置するかの指定フラグ / Auto-pickup or Destroy or Leave items */
29 byte dice; /*!< 武器のダイス値基準値 / Weapons which have more than 'dice' dice match */
30 byte bonus; /*!< アイテムのボーナス基準値 / Items which have more than 'bonus' magical bonus match */
34 * Struct for yank buffer
36 typedef struct chain_str {
37 struct chain_str *next;
42 * Data struct for text editor
50 int old_upper, old_left;
54 object_type *search_o_ptr;
56 concptr last_destroyed;
62 byte states[MAX_LINES];
73 * List for auto-picker/destroyer entries
75 extern int max_autopick;
76 extern int max_max_autopick;
77 extern autopick_type *autopick_list;
78 extern object_type autopick_last_destroyed_object;
80 void autopick_free_entry(autopick_type *entry);
81 void free_text_lines(concptr *lines_list);
82 int get_com_id(char key);
83 void auto_inscribe_item(player_type *player_ptr, object_type *o_ptr, int idx);
84 void add_autopick_list(autopick_type *entry);