From 50c201eae4fa07d6901dc5632c294660fb1a0745 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 18 Jun 2008 17:36:50 +0000 Subject: Outsource the tutorial descriptions of skills, and make them searchable in the database. Apply Zaba's patch to view skills from the skill menu ('m'). The melee, ranged and magic skills currently only have really generic descriptions shamelessly copied from the tutorial. There's a front end function get_skill_description that appends extra information like what types of unarmed attacks the current character is capable of (kicking, clawing, punching, ...) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5955 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-util.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spl-util.cc') diff --git a/crawl-ref/source/spl-util.cc b/crawl-ref/source/spl-util.cc index f308ca2f55..0b4f541951 100644 --- a/crawl-ref/source/spl-util.cc +++ b/crawl-ref/source/spl-util.cc @@ -98,6 +98,7 @@ spell_type spell_by_name(std::string name, bool partial_match) { if (name.empty()) return (SPELL_NO_SPELL); + lowercase(name); if (!partial_match) @@ -129,8 +130,8 @@ spell_type spell_by_name(std::string name, bool partial_match) } } - return (spellmatch != -1? static_cast(spellmatch) - : SPELL_NO_SPELL); + return (spellmatch != -1 ? static_cast(spellmatch) + : SPELL_NO_SPELL); } int get_spell_slot_by_letter( char letter ) -- cgit v1.2.3-54-g00ecf