extern bool comvert_hp_to_mp(player_type *creature_ptr);
extern bool comvert_mp_to_hp(player_type *creature_ptr);
extern bool demonic_breath(player_type *creature_ptr);
+extern bool mirror_concentration(player_type *creature_ptr);
/* spells3.c */
extern bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode);
}
else if (command == -4)
{
- if (total_friends)
- {
- msg_print(_("今はペットを操ることに集中していないと。", "You need concentration on the pets now."));
- return FALSE;
- }
- if (is_mirror_grid(&cave[p_ptr->y][p_ptr->x]))
- {
- msg_print(_("少し頭がハッキリした。", "You feel your head clear a little."));
-
- p_ptr->csp += (5 + p_ptr->lev * p_ptr->lev / 100);
- if (p_ptr->csp >= p_ptr->msp)
- {
- p_ptr->csp = p_ptr->msp;
- p_ptr->csp_frac = 0;
- }
- p_ptr->redraw |= (PR_MANA);
- }
- else
- {
- msg_print(_("鏡の上でないと集中できない!", "Here are not any mirrors!"));
- }
+ return mirror_concentration(p_ptr);
}
break;
}
return TRUE;
}
+bool mirror_concentration(player_type *creature_ptr)
+{
+ if (total_friends)
+ {
+ msg_print(_("今はペットを操ることに集中していないと。", "You need concentration on the pets now."));
+ return FALSE;
+ }
+ if (is_mirror_grid(&cave[creature_ptr->y][creature_ptr->x]))
+ {
+ msg_print(_("少し頭がハッキリした。", "You feel your head clear a little."));
+
+ creature_ptr->csp += (5 + creature_ptr->lev * creature_ptr->lev / 100);
+ if (creature_ptr->csp >= creature_ptr->msp)
+ {
+ creature_ptr->csp = creature_ptr->msp;
+ creature_ptr->csp_frac = 0;
+ }
+ creature_ptr->redraw |= (PR_MANA);
+ }
+ else
+ {
+ msg_print(_("鏡の上でないと集中できない!", "Here are not any mirrors!"));
+ }
+ return TRUE;
+}
\ No newline at end of file