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