git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1694 c06c8d41-db1a-0410-9941-cceddc491573
VDWXI5MMXZLJXWWPZPXJZ2YZIR2OMPQO3VIJO2HMTF4TPYJB2MDQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
void inspect_spells();
#include "describe.h"
void inspect_spells(){ if (!you.spell_no) { mpr("You don't know any spells."); return; }
void inspect_spells()
{
if (!you.spell_no)
mpr("You don't know any spells.");
return;
}
// Maybe we should honour auto_list here, but if you want the // description, you probably want the listing, too. int keyin = list_spells(); if ( isalpha(keyin) ) { describe_spell(get_spell_by_letter(keyin)); redraw_screen(); }}
// Maybe we should honour auto_list here, but if you want the
// description, you probably want the listing, too.
int keyin = list_spells();
if ( isalpha(keyin) )
describe_spell(get_spell_by_letter(keyin));
redraw_screen();
CMD_NO_CMD = 1000, // 1000
CMD_NO_CMD = 1000,
CMD_RUN_LEFT, // 1000 + 10
CMD_RUN_LEFT,
CMD_OPEN_DOOR_UP, // 1000 + 20
CMD_OPEN_DOOR_UP,
CMD_GO_DOWNSTAIRS, // 1000 + 30
CMD_GO_DOWNSTAIRS,
CMD_THROW, // 1000 + 40
CMD_THROW,
CMD_CAST_SPELL, // 1000 + 50
CMD_CAST_SPELL,
CMD_DISARM_TRAP, // 1000 + 60
CMD_DISARM_TRAP,
CMD_DISPLAY_CHARACTER_STATUS, // 1000 + 70
CMD_DISPLAY_CHARACTER_STATUS, CMD_DISPLAY_SPELLS,
CMD_DISPLAY_CHARACTER_STATUS,
CMD_DISPLAY_SPELLS,
CMD_QUIT, // 1000 + 80
CMD_QUIT,
break; case CMD_DISPLAY_SPELLS: inspect_spells();
break;
case CMD_DISPLAY_SPELLS:
inspect_spells();
case 'I': return CMD_NO_CMD;
case 'I': return CMD_DISPLAY_SPELLS;