#endif
int menu_line = (use_menu ? 1 : 0);
-#ifdef ALLOW_REPEAT /* TNB */
-
/* Get the spell, if available */
if (repeat_pull(&code))
{
}
}
-#endif /* ALLOW_REPEAT -- TNB */
-
p = spell_category_name(mp_ptr->spell_book);
/* Extract spells */
/* Show choices */
p_ptr->window |= (PW_SPELL);
- /* Window stuff */
window_stuff();
/* Build a prompt (accept all spells) */
/* Show choices */
p_ptr->window |= (PW_SPELL);
- /* Window stuff */
window_stuff();
/* Save the choice */
(*sn) = spell;
-#ifdef ALLOW_REPEAT /* TNB */
-
repeat_push((COMMAND_CODE)spell);
-#endif /* ALLOW_REPEAT -- TNB */
-
/* Success */
return TRUE;
}
char which;
COMMAND_CODE code;
-#ifdef ALLOW_REPEAT
-
/* Get the item index */
if (repeat_pull(&code) && (code == INVEN_FORCE))
{
return;
}
-#endif /* ALLOW_REPEAT */
-
/* Show the prompt */
prt(_("('w'練気術, ESC) 'w'かESCを押してください。 ", "(w for the Force, ESC) Hit 'w' or ESC. "), 0, 0);
else if (which == 'w')
{
-#ifdef ALLOW_REPEAT
-
repeat_push(INVEN_FORCE);
-#endif /* ALLOW_REPEAT */
-
break;
}
}
if (p_ptr->realm2 == REALM_NONE) item_tester_tval = mp_ptr->spell_book;
else item_tester_hook = item_tester_learn_spell;
- /* Get an item */
q = _("どの本を読みますか? ", "Browse which book? ");
s = _("読める本がない。", "You have no books that you can read.");
if (p_ptr->realm2 == REALM_NONE) item_tester_tval = mp_ptr->spell_book;
else item_tester_hook = item_tester_learn_spell;
- /* Get an item */
q = _("どの本から学びますか? ", "Study which book? ");
s = _("読める本がない。", "You have no books that you can read.");
/* Nothing to study */
if (spell < 0)
{
- /* Message */
msg_format(_("その本には学ぶべき%sがない。", "You cannot learn any %ss in that book."), p);
/* Abort */
#endif
}
- /* Take a turn */
p_ptr->energy_use = 100;
switch (mp_ptr->spell_book)
break;
}
- /* Sound */
sound(SOUND_STUDY);
/* One less spell available */
/* Restrict choices to spell books */
item_tester_tval = mp_ptr->spell_book;
- /* Get an item */
q = _("どの呪文書を使いますか? ", "Use which book? ");
s = _("呪文書がない!", "You have no spell books!");
}
}
- /* Take a turn */
p_ptr->energy_use = 100;
p_ptr->csp = 0;
p_ptr->csp_frac = 0;
- /* Message */
msg_print(_("精神を集中しすぎて気を失ってしまった!", "You faint from the effort!"));
/* Hack -- Bypass free action */
{
bool perm = (randint0(100) < 25);
- /* Message */
msg_print(_("体を悪くしてしまった!", "You have damaged your health!"));
/* Reduce constitution */
}
}
- /* Window stuff */
p_ptr->window |= (PW_PLAYER);
p_ptr->window |= (PW_SPELL);
}