git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2335 c06c8d41-db1a-0410-9941-cceddc491573
MO63AQNSXTPSLZE4AQEEEZXXBDZ6HFB4PYB6GS3QHL3HX3JMCA2AC
V5N2KDMZB26TLLIRDLICRM3CNOMHKYHAIZ5HCGDOWF57GDAY7JCAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
PAYI4UTJCR3XZSFOX5L35EURHRXQ6STO4Z7AQ3525QPNL3QYLNBAC
DDU4A3JGN5IUIPP5IASOODKPR2WBHSDSV4FITZ6HNXNSXXQACWAQC
spell_type spell_by_name(const char* name);
spell_type spell_by_name(const char* name)
spell_type spell_by_name(std::string name)
if (name == NULL || strlen(name) == 0)
if (name.empty())
char spname[80];
lowercase(name);
strncpy( spname, sptitle, sizeof( spname ) );
if (strcasecmp(spname, name) == 0)
if (name == lowercase_string(sptitle))
}spell_type spell_by_name(std::string name){ return spell_by_name(name.c_str());
}
{
return spell_by_name(name.c_str());
return (&spelldata[spell_list[spell]]);
const int index = spell_list[spell]; return (index != -1? &spelldata[index] : NULL);
const int index = spell_list[spell];
return (index != -1? &spelldata[index] : NULL);