Exemplo n.º 1
0
/**
 * Browse a given book.
 */
void textui_book_browse(const object_type * o_ptr)
{
	menu_type *m;

	m = spell_menu_new(o_ptr, spell_okay_to_browse);
	if (m) {
		spell_menu_browse(m, magic_desc[mp_ptr->spell_realm][SPELL_NOUN]);
		spell_menu_destroy(m);
	} else {
		msg("You cannot browse that.");
	}
}
Exemplo n.º 2
0
/**
 * Browse a given book.
 */
void textui_book_browse(const struct object *obj)
{
	struct menu *m;
	const char *noun = player->class->magic.spell_realm->spell_noun;

	m = spell_menu_new(obj, spell_okay_to_browse);
	if (m) {
		spell_menu_browse(m, noun);
		spell_menu_destroy(m);
	} else {
		msg("You cannot browse that.");
	}
}