static OBJECT_IDX chest_check(POSITION y, POSITION x, bool trapped)
{
cave_type *c_ptr = &cave[y][x];
-
OBJECT_IDX this_o_idx, next_o_idx = 0;
-
/* Scan all objects in the grid */
for (this_o_idx = c_ptr->o_idx; this_o_idx; this_o_idx = next_o_idx)
{
object_type *o_ptr;
- /* Acquire object */
o_ptr = &o_list[this_o_idx];
-
- /* Acquire next object */
next_o_idx = o_ptr->next_o_idx;
/* Skip unknown chests XXX XXX */
return (this_o_idx);
}
}
-
- /* No chest */
return (0);
}
* OM_NOMSG --- temporary flag to suppress messages which were
* already printed in autopick_pickup_items().
*/
-#define OM_FOUND 0x01 /* original boolean flag */
+#define OM_FOUND 0x01 /*!< アイテムを一度でも視界に収めたことがあるか */
#define OM_NOMSG 0x02 /* temporary flag to suppress messages */
#define OM_NO_QUERY 0x04 /* Query for auto-pick was already answered as 'No' */
#define OM_AUTODESTROY 0x08 /* Destroy later to avoid illegal inventry shift */
static void rd_options(void)
{
int i, n;
-
byte b;
-
u16b c;
BIT_FLAGS flag[8];
mana_warn = b;
}
-
/*** Cheating options ***/
rd_u16b(&c);
*/
static bool detect_feat_flag(POSITION range, int flag, bool known)
{
- int x, y;
- bool detect = FALSE;
+ int x, y;
+ bool detect = FALSE;
cave_type *c_ptr;
if (d_info[dungeon_type].flags1 & DF1_DARKNESS) range /= 3;
{
/* Hack -- memorize it */
o_ptr->marked |= OM_FOUND;
-
- /* Redraw */
lite_spot(y, x);
-
- /* Detect */
detect = TRUE;
}
}
{
/* Hack -- memorize it */
o_ptr->marked |= OM_FOUND;
-
- /* Redraw */
lite_spot(y, x);
-
- /* Detect */
detect = TRUE;
}
}
{
/* Memorize the item */
o_ptr->marked |= OM_FOUND;
-
- /* Redraw */
lite_spot(y, x);
-
- /* Detect */
detect = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}