/* Wall (or secret door) */
else
{
-#ifdef ALLOW_EASY_OPEN
/* Closed doors */
if (easy_open && is_closed_door(feat) && easy_open_door(y, x)) return;
-#endif /* ALLOW_EASY_OPEN */
#ifdef JP
msg_format("%sが行く手をはばんでいる。", name);
}
-#if defined(ALLOW_EASY_OPEN) || defined(ALLOW_EASY_DISARM) /* TNB */
+#if defined(ALLOW_EASY_DISARM) /* TNB */
/*!
* @brief 地形は開くものであって、かつ開かれているかを返す /
return d[dx + 1][dy + 1];
}
-#endif /* defined(ALLOW_EASY_OPEN) || defined(ALLOW_EASY_DISARM) -- TNB */
+#endif /* defined(ALLOW_EASY_DISARM) -- TNB */
/*!
set_action(ACTION_NONE);
}
-#ifdef ALLOW_EASY_OPEN /* TNB */
-
/* Option: Pick a direction */
if (easy_open)
{
}
}
-#endif /* ALLOW_EASY_OPEN -- TNB */
-
/* Allow repeated command */
if (command_arg)
{
set_action(ACTION_NONE);
}
-#ifdef ALLOW_EASY_OPEN /* TNB */
-
/* Option: Pick a direction */
if (easy_open)
{
}
}
-#endif /* ALLOW_EASY_OPEN -- TNB */
-
/* Allow repeated command */
if (command_arg)
{
if (!more) disturb(0, 0);
}
-
-#ifdef ALLOW_EASY_OPEN /* TNB */
-
/*!
* @brief 移動処理による簡易な「開く」処理 /
* easy_open_door --
return (TRUE);
}
-#endif /* ALLOW_EASY_OPEN -- TNB */
-
-
/*!
* @brief 箱のトラップを解除するコマンドのメインルーチン /
* Perform the basic "disarm" command
extern bool repeat_pull(COMMAND_CODE *what);
extern void repeat_check(void);
-#ifdef ALLOW_EASY_OPEN /* TNB */
/* variable.c */
extern bool easy_open;
/* cmd2.c */
extern bool easy_open_door(POSITION y, POSITION x);
-#endif /* ALLOW_EASY_OPEN -- TNB */
-
#ifdef ALLOW_EASY_DISARM /* TNB */
/* variable.c */
bool confirm_wear; /* Confirm to wear/wield known cursed items */
bool confirm_quest; /* Prompt before exiting a quest level */
bool target_pet; /* Allow targetting pets */
-
-#ifdef ALLOW_EASY_OPEN
bool easy_open; /* Automatically open doors */
-#endif
#ifdef ALLOW_EASY_DISARM
bool easy_disarm; /* Automatically disarm traps */
{ &target_pet, FALSE, OPT_PAGE_INPUT, 2, 5,
"target_pet", _("ペットをターゲットにする", "Allow targetting pets") },
- #ifdef ALLOW_EASY_OPEN
{ &easy_open, TRUE, OPT_PAGE_INPUT, 5, 7,
"easy_open", _("自動的にドアを開ける", "Automatically open doors") },
- #endif /* ALLOW_EASY_OPEN */
- #ifdef ALLOW_EASY_DISARM
{ &easy_disarm, TRUE, OPT_PAGE_INPUT, 5, 8,
"easy_disarm", _("自動的に罠を解除する", "Automatically disarm traps") },
- #endif /* ALLOW_EASY_DISARM */
#ifdef ALLOW_EASY_FLOOR /* TNB */
{ &easy_floor, FALSE, OPT_PAGE_INPUT, 5, 9,
extern bool confirm_wear; /* Confirm to wear/wield known cursed items */\r
extern bool confirm_quest; /* Prompt before exiting a quest level */\r
extern bool target_pet; /* Allow targetting pets */\r
-\r
-#ifdef ALLOW_EASY_OPEN\r
extern bool easy_open; /* Automatically open doors */\r
-#endif\r
\r
#ifdef ALLOW_EASY_DISARM\r
extern bool easy_disarm; /* Automatically disarm traps */\r
/* Zangband options: */
/*
- * OPTION: Make opening and closing things easy -- TNB
- */
-#define ALLOW_EASY_OPEN
-
-/*
* OPTION: Make disarming traps easy -- TNB
*/
#define ALLOW_EASY_DISARM