if (p_ptr->pclass == CLASS_BARD)
{
- p_ptr->magic_num1[0] = 0;
- p_ptr->magic_num2[0] = 0;
+ SINGING_SONG_EFFECT(p_ptr) = 0;
+ SINGING_SONG_ID(p_ptr) = 0;
}
}
if (music_singing_any() || hex_spelling_any())
{
cptr str = (music_singing_any()) ? _("歌", "singing") : _("呪文", "spelling");
- p_ptr->magic_num1[1] = p_ptr->magic_num1[0];
- p_ptr->magic_num1[0] = 0;
+ INTERUPTING_SONG_EFFECT(p_ptr) = SINGING_SONG_EFFECT(p_ptr);
+ SINGING_SONG_EFFECT(p_ptr) = MUSIC_NONE;
msg_format(_("%sが途切れた。", "Your %s is interrupted."), str);
p_ptr->action = ACTION_NONE;
bool dec_stat(int stat, int amount, int permanent)
{
BASE_STATUS cur, max;
- int loss, same, res = FALSE;
+ int loss, same;
+ bool res = FALSE;
/* Acquire current value */