ability menu (a!) Currently only contains descriptions for Zin, TSO and "Renounce Religion". Also, now I'm worried that players might accidentally press '?' instead of '!' and then apply an ability when they only wanted to read its description. (Of course, with some of them you can opt out, e.g. because they need targeting, but for others it's a real problem.) There must be a good solution around somewhere. Abilities are not (yet) searchable in the database.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5958 c06c8d41-db1a-0410-9941-cceddc491573
OEHJJ5X5CBOHTXISZLJHVLCAPH77RYSVKKBGW3US2GGXZMZJ5CEQC
UXAXAS5XM2C2X7B77JUZXDD4TL7UATYMUJBPK4J7PPAFLAMCG7MQC
HAMUM5IA4BJMLRIME7KVVVYLRHVS55RIYMGLLQZL3F7QEP7FJ5KAC
J44YLLLSMPKEY3IXV3CPOM257PQZW45A4QWSSBYVFXS5T5XGQQWAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
GL7TJGUGV4JPLZCDWH6QVST4RYW7UJV6IP7UAEWEKNBWJO2H2ZHAC
CRX4RG35C3DH57NIXCW4CG4X7SBMSX7TAJR2BAFQ4LQKCLYUNANQC
ESWIM76FGJL4QFLSHU6AC4D74PT7OPLQ7ZCJYWLZS5UCBAJDXYHAC
TRZAZJJA5VQBJ65SO5H5DNSILIZEJHIZCBYEBHEATCT6ZSMWIFKQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
JVSCP4FTW2G57C6YD5HZOZXTODGZH7TR75JQGFJBEPX3LCZH236QC
SIXMP3FJ4FZHK2YVUPUNE7VA5RHRUJR2WBDETDPPXHIBCQQCC2QAC
Y56C5OMUQ5XF2G6DKDV4R5MED44UOIUPTBBQVWQBUHYIXYA5MOZAC
LDBTCT5WIPLJPZWXS2RUQ26QKISCUUTLO77M464WOE6VSYSNPKYAC
NMZFCCM6O3KO2GJWKOSULN27B3QIZKWPBOB62PAILXMRQD4JMIMAC
FJPFYYA3P63IS33YRJVZRJBFYOHYKD5BQRVGIQRD7ARHVVTZ47YAC
RN2DSYJRJ55J7S2VBEYCOAINFU4VDBMWDJIYJG326BSLYOFDNHGAC
I7QLYOTE6DLQZM7YWUWYLKHRJRB2A3STQ42ALSRGQICEWKD2QTEQC
WXSNNK2RXP3DQFAEQGQUZJHFWXJC7ZKG2WURZGL566UDM4YXFSWQC
2IJDLTWK74ULETLFTIPUIY2MSG6RNONVAFNFE7MADPT6UNYSSBDAC
23PFLB2E4QHL5SF3Q2YV5FXRH6MFHENEU2ACVC572ZCYDXCBZVQAC
KKNUX66ORZWWQH4ARKCHPHNDOYCI65STE3A27LKA3FWUKIX7MAXQC
H5BVKRORNXTCJKFXQPTFWDURKSUFW24CGSJXBGZCJUP4DHMSVDBQC
2PAHDAPDO6PN4FNGB5N7CQNEGHSE3NOGPXYZMIAOJC4VW34FRVOAC
KBNY5FWKTEAKABFCLPC3QFKFSVZKAGXINPCIFV6WDSWFO4VCKNTAC
NLXVJSK53M3GCGGVJWYPHYZJ2A7JAF2FEYQPIGLRUYJ3FTWYONLQC
DF5LOTJFSXOT7UBDHLBDLGA22OY4L7ZF6CVFP6H3KL4N5CHB5C5QC
RVST2QHYJ757ZHK4AUJ5NGPDZ44AD6RVFVXYPKQIBJXZBDNUCHXQC
%%%%
No ability
If you get this description, it is a bug.
%%%%
Spit Poison
There's currently no description for this ability...
%%%%
Sense Surroundings
There's currently no description for this ability...
%%%%
Teleportation
There's currently no description for this ability...
%%%%
Blink ability
There's currently no description for this ability...
%%%%
Breathe Fire
There's currently no description for this ability...
%%%%
Breathe Frost
There's currently no description for this ability...
%%%%
Breathe Poison Gas
There's currently no description for this ability...
%%%%
Breathe Lightning
There's currently no description for this ability...
%%%%
Breathe Power
There's currently no description for this ability...
%%%%
Breathe Sticky Flame
There's currently no description for this ability...
%%%%
Breathe Steam
There's currently no description for this ability...
%%%%
Bat Form
There's currently no description for this ability...
%%%%
Spit Acid
There's currently no description for this ability...
%%%%
# Both for Fly I and II.
Fly
There's currently no description for this ability...
%%%%
Summon Minor Demon
There's currently no description for this ability...
%%%%
Summon Demon
There's currently no description for this ability...
%%%%
Hellfire
There's currently no description for this ability...
%%%%
Torment
There's currently no description for this ability...
%%%%
Raise Dead
There's currently no description for this ability...
%%%%
Control Demon
There's currently no description for this ability...
%%%%
Gate Yourself to Pandemonium
There's currently no description for this ability...
%%%%
Channeling
There's currently no description for this ability...
%%%%
Throw Flame ability
There's currently no description for this ability...
%%%%
Throw Frost ability
There's currently no description for this ability...
%%%%
Bolt of Draining ability
There's currently no description for this ability...
%%%%
Release Delayed Fireball
There's currently no description for this ability...
%%%%
Self-Restoration
There's currently no description for this ability...
%%%%
Evoke Sense Surroundings
There's currently no description for this ability...
%%%%
Evoke Teleportation
There's currently no description for this ability...
%%%%
Evoke Blink
There's currently no description for this ability...
%%%%
Evoke Berserk Rage
There's currently no description for this ability...
%%%%
Evoke Invisibility
There's currently no description for this ability...
%%%%
Turn Visible
There's currently no description for this ability...
%%%%
Evoke Levitation
There's currently no description for this ability...
%%%%
Stop Levitating
There's currently no description for this ability...
%%%%
End Transformation
There's currently no description for this ability...
%%%%
# Zin
Recite
Preaching to monsters about Zin's laws leads to various results. It
works best on humanoids, worse on demons and not at all on beasts.
%%%%
Vitalisation
If Zin is most pleased with you, you can Vitalise yourself. This will
restore Health, Magic, attribute points, or unrot you. In case none of
these is necessary, you gain temporary boosts to your attributes
instead. It is possible to Vitalise several times in succession for
greater effect.
%%%%
Sanctuary
There's currently no description for this ability...
%%%%
# The Shining One
Divine Shield
Conjures up a divine shield that stacks with an ordinary shield and can
be used even when wielding a two-handed weapon, as the Divine Shield is
managed by the Shining One.
%%%%
Cleansing Flame
Hurls a huge blast of divine fury, severely damaging undead and demons.
All other hostiles also take damage, if less so, whereas allies are
never affected.
%%%%
Summon Daeva
Summoned Daevas are powerful warriors against evil. They might be blessed
by the Shining One to stay longer or even permanently in this world.
%%%%
# Both Kikubaaqudgha and Yredelmnul.
Recall Undead Slaves
There's currently no description for this ability...
%%%%
# Kikubaaqudgha
Enslave Undead
There's currently no description for this ability...
%%%%
Invoke Death
There's currently no description for this ability...
%%%%
# Yredelemnul
Animate Corpse
There's currently no description for this ability...
%%%%
Animate Dead ability
There's currently no description for this ability...
%%%%
Drain Life
There's currently no description for this ability...
%%%%
Control Undead
There's currently no description for this ability...
%%%%
# Okawaru
Might
There's currently no description for this ability...
%%%%
Haste
There's currently no description for this ability...
%%%%
# Makhleb
Minor Destruction
There's currently no description for this ability...
%%%%
Lesser Servant of Makhleb
There's currently no description for this ability...
%%%%
Major Destruction
There's currently no description for this ability...
%%%%
Greater Servant of Makhleb
There's currently no description for this ability...
%%%%
# Sif Muna
Channel Energy
There's currently no description for this ability...
%%%%
Forget Spell
There's currently no description for this ability...
%%%%
# Trog
Burn Books
There's currently no description for this ability...
%%%%
Berserk
There's currently no description for this ability...
%%%%
Trog's Hand
There's currently no description for this ability...
%%%%
Brothers in Arms
There's currently no description for this ability...
%%%%
# Elyvilon
Destroy Weapons
There's currently no description for this ability...
%%%%
Lesser Healing
There's currently no description for this ability...
%%%%
Purification
There's currently no description for this ability...
%%%%
Healing
There's currently no description for this ability...
%%%%
Restoration
There's currently no description for this ability...
%%%%
Greater Healing
There's currently no description for this ability...
%%%%
# Lugonu
Depart the Abyss
There's currently no description for this ability...
%%%%
Bend Space
There's currently no description for this ability...
%%%%
Banish
There's currently no description for this ability...
%%%%
Corrupt
There's currently no description for this ability...
%%%%
Enter the Abyss
There's currently no description for this ability...
%%%%
# Nemelex Xobeh
Draw One
There's currently no description for this ability...
%%%%
Peek at Two
There's currently no description for this ability...
%%%%
Triple Draw
There's currently no description for this ability...
%%%%
Mark Four
There's currently no description for this ability...
%%%%
Stack Five
There's currently no description for this ability...
%%%%
# Beogh
Smiting
There's currently no description for this ability...
%%%%
Recall Orcish Followers
There's currently no description for this ability...
%%%%
Renounce Religion
Renouncing your faith will make your character leave your god (and
usually anger said god).
%%%%
}
static void _print_talent_description(talent tal)
{
clrscr();
std::string name = get_ability_def(tal.which).name;
// The suffix is necessary to distinguish between similarly named spells.
// Yes, this is a hack. (XXX)
std::string lookup = getLongDescription(name + "ability");
if (lookup.empty())
{
// Try again without the suffix.
lookup = getLongDescription(name);
}
if (lookup.empty()) // Still nothing found?
cprintf("No description found.");
else
{
std::ostringstream data;
data << name << "$$" << lookup;
print_description(data.str());
}
if (getch() == 0)
getch();
clrscr();
else if (keyin == ESCAPE || keyin == ' '
|| keyin == '\r' || keyin == '\n')
else if (keyin == '!')
{
while (true)
{
selected = choose_ability_menu(talents, true);
if (selected == -1)
{
canned_msg( MSG_OK );
return (false);
}
_print_talent_description(talents[selected]);
}
}
else if (keyin == ESCAPE || keyin == ' ' || keyin == '\r'
|| keyin == '\n')