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