void do_cmd_activate(void)
{
OBJECT_IDX item;
- cptr q, s;
-
+ cptr q, s;
if (p_ptr->special_defense & (KATA_MUSOU | KATA_KOUKIJIN))
{
while (attempts--)
{
scatter(&y, &x, p_ptr->y, p_ptr->x, 4, 0);
-
if (!cave_have_flag_bold(y, x, FF_PROJECT)) continue;
-
if (!player_bold(y, x)) break;
}
}
break;
}
+
case ACT_BR_COLD:
{
if (!get_aim_dir(&dir)) return FALSE;
}
break;
}
+
case ACT_BR_DRAGON:
{
if (!activate_dragon_breath(o_ptr)) return FALSE;
}
/* Activate for other offensive action */
-
case ACT_CONFUSE:
{
msg_print(_("様々な色の火花を発している...", "It glows in scintillating colours..."));
extern bool make_attack_spell(MONSTER_IDX m_idx);
extern void beam(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, int target_type);
extern void bolt(MONSTER_IDX m_idx, int y, int x, int typ, int dam_hp, int monspell, int target_type);
-extern void breath(int y, int x, MONSTER_IDX m_idx, int typ, int dam_hp, int rad, bool breath, int monspell, int target_type);
+extern void breath(POSITION y, POSITION x, MONSTER_IDX m_idx, int typ, int dam_hp, POSITION rad, bool breath, int monspell, int target_type);
/* mspells2.c */
extern void get_project_point(int sy, int sx, int *ty, int *tx, BIT_FLAGS flg);
extern HIT_POINT monspell_bluemage_damage(int SPELL_NUM, int plev, int TYPE);
/* hissatsu.c */
-extern void hissatsu_info(char *p, int power);
extern void do_cmd_hissatsu(void);
-extern void do_cmd_hissatsu_browse(void);
extern void do_cmd_gain_hissatsu(void);
extern MULTIPLY mult_hissatsu(MULTIPLY mult, BIT_FLAGS *flgs, monster_type *m_ptr, BIT_FLAGS mode);
* @param typ 効果属性ID
* @param dam_hp 威力
* @param rad 半径
- * @param breath TRUEならばブ・E構萢・.ALSEならばボー・E萢
+ * @param breath
* @param monspell モンスター魔法のID
* @param target_type モンスターからモンスターへ撃つならMONSTER_TO_MONSTER、モンスターからプレイヤーならMONSTER_TO_PLAYER
* @return なし
*/
-void breath(int y, int x, MONSTER_IDX m_idx, int typ, int dam_hp, int rad, bool breath, int monspell, int target_type)
+void breath(POSITION y, POSITION x, MONSTER_IDX m_idx, int typ, int dam_hp, POSITION rad, bool breath, int monspell, int target_type)
{
monster_type *m_ptr = &m_list[m_idx];
monster_race *r_ptr = &r_info[m_ptr->r_idx];