*/
#include "angband.h"
-
+#include "store.h"
#define MAX_LINELEN 1024
/*
* Macros for Keywords
*/
-#define FLG_ALL 0
-#define FLG_UNAWARE 1
-#define FLG_UNIDENTIFIED 2
-#define FLG_IDENTIFIED 3
-#define FLG_STAR_IDENTIFIED 4
-#define FLG_COLLECTING 5
-#define FLG_ARTIFACT 6
+#define FLG_ALL 0
+#define FLG_UNAWARE 1
+#define FLG_UNIDENTIFIED 2
+#define FLG_IDENTIFIED 3
+#define FLG_STAR_IDENTIFIED 4
+#define FLG_COLLECTING 5
+#define FLG_ARTIFACT 6
#define FLG_EGO 7
#define FLG_GOOD 10
-#define FLG_NAMELESS 11
+#define FLG_NAMELESS 11
#define FLG_AVERAGE 12
-#define FLG_WORTHLESS 13
+#define FLG_WORTHLESS 13
#define FLG_RARE 14
#define FLG_COMMON 15
#define FLG_BOOSTED 16
-#define FLG_MORE_DICE 17
-#define FLG_MORE_BONUS 18
+#define FLG_MORE_DICE 17
+#define FLG_MORE_BONUS 18
#define FLG_WANTED 19
#define FLG_UNIQUE 20
#define FLG_HUMAN 21
-#define FLG_UNREADABLE 22
+#define FLG_UNREADABLE 22
#define FLG_REALM1 23
#define FLG_REALM2 24
#define FLG_FIRST 25
/* Now decided to destroy */
- disturb(0,0);
+ disturb(FALSE, FALSE);
/* Artifact? */
if (!can_player_destroy_object(o_ptr))
/* Describe the object (with {terrible/special}) */
object_desc(o_name, o_ptr, 0);
- /* Message */
msg_format(_("%sは破壊不能だ。", "You cannot auto-destroy %s."), o_name);
- /* Done */
return;
}
delete_object_idx(0 - item);
}
- /* Print a message */
msg_format(_("%sを自動破壊します。", "Auto-destroying %s."), o_name);
}
}
*/
void autopick_pickup_items(cave_type *c_ptr)
{
- s16b this_o_idx, next_o_idx = 0;
+ OBJECT_IDX this_o_idx, next_o_idx = 0;
/* Scan the pile of objects */
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
{
int idx;
-
- /* Acquire object */
- object_type *o_ptr = &o_list[this_o_idx];
+ object_type *o_ptr = &o_list[this_o_idx];
/* Acquire next object */
next_o_idx = o_ptr->next_o_idx;
if (idx >= 0 &&
(autopick_list[idx].action & (DO_AUTOPICK | DO_QUERY_AUTOPICK)))
{
- disturb(0,0);
+ disturb(FALSE, FALSE);
if (!inven_carry_okay(o_ptr))
{
char o_name[MAX_NLEN];
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
- /* Message */
msg_format(_("ザックには%sを入れる隙間がない。", "You have no room for %s."), o_name);
/* Hack - remember that the item has given a message here. */
o_ptr->marked |= OM_NOMSG;
continue;
}
- /* Describe the object */
object_desc(o_name, o_ptr, 0);
sprintf(out_val, _("%sを拾いますか? ", "Pick up %s? "), o_name);
/* Describe the object (with {terrible/special}) */
object_desc(o_name, o_ptr, 0);
- /* Message */
msg_format(_("%sは破壊不能だ。", "You cannot auto-destroy %s."), o_name);
- /* Done */
return FALSE;
}
object_type *o_ptr;
cptr q, s;
- /* Get an item */
#ifdef JP
q = "どのアイテムを登録しますか? ";
s = "アイテムを持っていない。";
object_type *o_ptr;
cptr q, s;
- /* Get an item */
#ifdef JP
q = "どのアイテムを検索しますか? ";
s = "アイテムを持っていない。";
return (back ? -1 : 1);
case KTRL('i'):
- /* Get an item */
return get_object_for_search(o_handle, search_strp);
case KTRL('l'):
int i;
int by1 = 0, by2 = 0;
- /* Get size */
Term_get_size(&tb->wid, &tb->hgt);
/*
/* Terminate */
buf[n] = '\0';
- /* Flush */
flush();
/* Convert the trigger */
mode = KEYMAP_MODE_ORIG;
}
- /* Flush */
flush();
/* Get a key */
buf[0] = inkey();
buf[1] = '\0';
- /* Flush */
flush();
/* Convert the trigger */