From 2d4d6508f4d44036aa16052d7764432fe2fc06f9 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 11 Sep 2009 21:35:05 +0000 Subject: Add a button to memorise spells to the new spell display. All this does at the moment is call learn_spell(), but I'm planning to reuse the spell display for this purpose. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10655 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilepick.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/tilepick.cc') diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc index b01bfb3d23..ee553a3361 100644 --- a/crawl-ref/source/tilepick.cc +++ b/crawl-ref/source/tilepick.cc @@ -2719,6 +2719,9 @@ int tileidx_spell(spell_type spell) case SPELL_DEBUGGING_RAY: return TILEG_ERROR; + case NUM_SPELLS: // XXX: Hack! + return TILEG_MEMORISE; + // Air case SPELL_SHOCK: return TILEG_SHOCK; case SPELL_SWIFTNESS: return TILEG_SWIFTNESS; @@ -2938,8 +2941,6 @@ int tileidx_spell(spell_type spell) case SPELL_DRACONIAN_BREATH: case SPELL_WATER_ELEMENTALS: case SPELL_PORKALATOR: - - case NUM_SPELLS: default: return TILE_ERROR; } -- cgit v1.2.3-54-g00ecf