/* 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;
}
/*
* Auto-destroy marked item
*/
-static void autopick_delayed_alter_aux(int item)
+static void autopick_delayed_alter_aux(INVENTORY_IDX item)
{
object_type *o_ptr;
*/
void autopick_delayed_alter(void)
{
- int item;
+ INVENTORY_IDX item;
/*
* Scan inventry in reverse order to prevent
item = cave[p_ptr->y][p_ptr->x].o_idx;
while (item)
{
- int next = o_list[item].next_o_idx;
+ OBJECT_IDX next = o_list[item].next_o_idx;
autopick_delayed_alter_aux(-item);
item = next;
}
* Auto-destroyer works only on inventory or on floor stack only when
* requested.
*/
-void autopick_alter_item(int item, bool destroy)
+void autopick_alter_item(INVENTORY_IDX item, bool destroy)
{
object_type *o_ptr;
int idx;
*/
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)
/* 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;
/* 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;
}
static void prepare_default_pickpref(void)
{
const cptr messages[] = {
-#ifdef JP
- "あなたは「自動拾いエディタ」を初めて起動しました。",
- "自動拾いのユーザー設定ファイルがまだ書かれていないので、",
- "基本的な自動拾い設定ファイルをlib/pref/picktype.prfからコピーします。",
- NULL
-#else
- "You have activated the Auto-Picker Editor for the first time.",
- "Since user pref file for autopick is not yet created,",
- "the default setting is loaded from lib/pref/pickpref.prf .",
+ _("あなたは「自動拾いエディタ」を初めて起動しました。", "You have activated the Auto-Picker Editor for the first time."),
+ _("自動拾いのユーザー設定ファイルがまだ書かれていないので、", "Since user pref file for autopick is not yet created,"),
+ _("基本的な自動拾い設定ファイルをlib/pref/picktype.prfからコピーします。", "the default setting is loaded from lib/pref/pickpref.prf ."),
NULL
-#endif
};
char buf[1024];
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'):
/*
* Editor command id's
*/
-#define EC_QUIT 1
-#define EC_SAVEQUIT 2
-#define EC_REVERT 3
-#define EC_HELP 4
-#define EC_RETURN 5
+#define EC_QUIT 1
+#define EC_SAVEQUIT 2
+#define EC_REVERT 3
+#define EC_HELP 4
+#define EC_RETURN 5
#define EC_LEFT 6
#define EC_DOWN 7
#define EC_UP 8