*/
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;
/* Redraw */
lite_spot(y, x);
- /* Obvious */
detect = TRUE;
}
}
}
-
- /* Result */
return detect;
}
{
msg_print(_("トラップの存在を感じとった!", "You sense the presence of traps!"));
}
-
- /* Result */
return detect;
}
{
msg_print(_("ドアの存在を感じとった!", "You sense the presence of doors!"));
}
-
- /* Result */
return detect;
}
{
msg_print(_("階段の存在を感じとった!", "You sense the presence of stairs!"));
}
-
- /* Result */
return detect;
}
{
msg_print(_("埋蔵された財宝の存在を感じとった!", "You sense the presence of buried treasure!"));
}
-
- /* Result */
return detect;
}
/* Detect "gold" objects */
if (o_ptr->tval == TV_GOLD)
{
- /* Hack -- memorize it */
o_ptr->marked |= OM_FOUND;
-
- /* Redraw */
lite_spot(y, x);
-
- /* Detect */
detect = TRUE;
}
}
{
detect = TRUE;
}
-
- /* Result */
return (detect);
}
/* Detect "real" objects */
if (o_ptr->tval != TV_GOLD)
{
- /* Hack -- memorize it */
o_ptr->marked |= OM_FOUND;
-
- /* Redraw */
lite_spot(y, x);
-
- /* Detect */
detect = TRUE;
}
}
{
detect = TRUE;
}
-
- /* Result */
return (detect);
}
{
/* 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;
}
}
/* Describe result */
msg_print(_("モンスターの存在を感じとった!", "You sense the presence of monsters!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Describe result */
msg_print(_("透明な生物の存在を感じとった!", "You sense the presence of invisible creatures!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Describe result */
msg_print(_("邪悪なる生物の存在を感じとった!", "You sense the presence of evil creatures!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Describe result */
msg_print(_("自然でないモンスターの存在を感じた!", "You sense the presence of unnatural beings!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Describe result */
msg_print(_("殺気を感じとった!", "You sense the presence of someone's mind!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
/* Describe result */
msg_print(_("モンスターの存在を感じとった!", "You sense the presence of monsters!"));
}
-
- /* Result */
return (flag);
}
/* Update monster recall window */
if (p_ptr->monster_race_idx == m_ptr->r_idx)
{
- /* Window stuff */
p_ptr->window |= (PW_MONSTER);
}
}
/* Update the monster */
update_mon(i, FALSE);
-
- /* Detect */
flag = TRUE;
}
}
msg_format(_("%sの存在を感じとった!", "You sense the presence of %s!"), desc_monsters);
msg_print(NULL);
}
-
- /* Result */
return (flag);
}
if (detect_objects_normal(range)) detect = TRUE;
if (detect_monsters_invis(range)) detect = TRUE;
if (detect_monsters_normal(range)) detect = TRUE;
-
- /* Result */
return (detect);
}
/* Jump directly to the target monster */
if (project(0, 0, y, x, dam, typ, flg, -1)) obvious = TRUE;
}
-
- /* Result */
return (obvious);
}
else if (player_cast && (r_ptr->level > randint0(power))) resist = TRUE;
else if (player_cast && (m_ptr->mflag2 & MFLAG2_NOGENO)) resist = TRUE;
- /* Delete the monster */
+
else
{
if (record_named_pet && is_pet(m_ptr) && m_ptr->nickname)
if (player_cast)
{
- /* Take damage */
take_hit(DAMAGE_GENO, randint1(dam_side), format(_("%^sの呪文を唱えた疲労", "the strain of casting %^s"), spell_name), -1);
}
/* Redraw */
p_ptr->redraw |= (PR_HP);
-
- /* Window stuff */
p_ptr->window |= (PW_PLAYER);
/* Handle */
handle_stuff();
-
- /* Fresh */
Term_fresh();
/* Delay */
chg_virtue(V_KNOWLEDGE, 1);
msg_print(_("これで全部です。", "That's all."));
}
-
- /* Result */
return (probe);
}
/* Mega-Hack -- Forget the view and lite */
p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
- /* Update stuff */
p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MON_LITE | PU_MONSTERS);
/* Redraw map */
p_ptr->redraw |= (PR_MAP);
- /* Window stuff */
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
if (p_ptr->special_defense & NINJA_S_STEALTH)
}
}
- /* Delete the monster */
+
delete_monster(yy, xx);
/* No longer safe */
/* Mega-Hack -- Forget the view and lite */
p_ptr->update |= (PU_UN_VIEW | PU_UN_LITE);
- /* Update stuff */
p_ptr->update |= (PU_VIEW | PU_LITE | PU_FLOW | PU_MON_LITE | PU_MONSTERS);
/* Update the health bar */
/* Redraw map */
p_ptr->redraw |= (PR_MAP);
- /* Window stuff */
p_ptr->window |= (PW_OVERHEAD | PW_DUNGEON);
if (p_ptr->special_defense & NINJA_S_STEALTH)
/* Forget the grid */
if (!view_torch_grids) c_ptr->info &= ~(CAVE_MARK);
- /* Notice */
note_spot(y, x);
}
bool dummy = (project(0, 1, p_ptr->y, p_ptr->x, 0, GF_STONE_WALL, flg, -1));
- /* Update stuff */
p_ptr->update |= (PU_FLOW);
/* Redraw map */
}
/* Only works on adjacent monsters */
- if (!get_rep_dir2(&dir)) return FALSE;
+ if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
y = p_ptr->y + ddy[dir];
x = p_ptr->x + ddx[dir];
c_ptr = &cave[y][x];
DIRECTION dir;
POSITION x, y;
- if (!get_rep_dir2(&dir)) return FALSE;
+ if (!get_direction(&dir, FALSE, FALSE)) return FALSE;
y = p_ptr->y + ddy[dir];
x = p_ptr->x + ddx[dir];
if (cave[y][x].m_idx)
bool okay = FALSE;
item_tester_no_ryoute = TRUE;
- /* Get an item */
q = _("どのアイテムを調べますか?", "Meditate on which item? ");
s = _("調べるアイテムがありません。", "You have nothing appropriate.");
/* Combine / Reorder the pack (later) */
p_ptr->notice |= (PN_COMBINE | PN_REORDER);
- /* Window stuff */
p_ptr->window |= (PW_INVEN | PW_EQUIP | PW_PLAYER);
/* Valid "tval" codes */