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 abilityIf you get this description, it is a bug.%%%%Spit PoisonThere's currently no description for this ability...%%%%Sense SurroundingsThere's currently no description for this ability...%%%%TeleportationThere's currently no description for this ability...%%%%Blink abilityThere's currently no description for this ability...%%%%Breathe FireThere's currently no description for this ability...%%%%Breathe FrostThere's currently no description for this ability...%%%%Breathe Poison GasThere's currently no description for this ability...%%%%Breathe LightningThere's currently no description for this ability...%%%%Breathe PowerThere's currently no description for this ability...%%%%Breathe Sticky FlameThere's currently no description for this ability...%%%%Breathe SteamThere's currently no description for this ability...%%%%Bat FormThere's currently no description for this ability...%%%%Spit AcidThere's currently no description for this ability...%%%%# Both for Fly I and II.FlyThere's currently no description for this ability...%%%%Summon Minor DemonThere's currently no description for this ability...%%%%Summon DemonThere's currently no description for this ability...%%%%HellfireThere's currently no description for this ability...%%%%TormentThere's currently no description for this ability...%%%%Raise DeadThere's currently no description for this ability...%%%%Control DemonThere's currently no description for this ability...%%%%Gate Yourself to PandemoniumThere's currently no description for this ability...%%%%ChannelingThere's currently no description for this ability...%%%%Throw Flame abilityThere's currently no description for this ability...%%%%Throw Frost abilityThere's currently no description for this ability...%%%%Bolt of Draining abilityThere's currently no description for this ability...%%%%Release Delayed FireballThere's currently no description for this ability...%%%%Self-RestorationThere's currently no description for this ability...%%%%Evoke Sense SurroundingsThere's currently no description for this ability...%%%%Evoke TeleportationThere's currently no description for this ability...%%%%Evoke BlinkThere's currently no description for this ability...%%%%Evoke Berserk RageThere's currently no description for this ability...%%%%Evoke InvisibilityThere's currently no description for this ability...%%%%Turn VisibleThere's currently no description for this ability...%%%%Evoke LevitationThere's currently no description for this ability...%%%%Stop LevitatingThere's currently no description for this ability...%%%%End TransformationThere's currently no description for this ability...%%%%# ZinRecitePreaching to monsters about Zin's laws leads to various results. Itworks best on humanoids, worse on demons and not at all on beasts.%%%%VitalisationIf Zin is most pleased with you, you can Vitalise yourself. This willrestore Health, Magic, attribute points, or unrot you. In case none ofthese is necessary, you gain temporary boosts to your attributesinstead. It is possible to Vitalise several times in succession forgreater effect.%%%%SanctuaryThere's currently no description for this ability...%%%%# The Shining OneDivine ShieldConjures up a divine shield that stacks with an ordinary shield and canbe used even when wielding a two-handed weapon, as the Divine Shield ismanaged by the Shining One.%%%%Cleansing FlameHurls a huge blast of divine fury, severely damaging undead and demons.All other hostiles also take damage, if less so, whereas allies arenever affected.%%%%Summon DaevaSummoned Daevas are powerful warriors against evil. They might be blessedby the Shining One to stay longer or even permanently in this world.%%%%# Both Kikubaaqudgha and Yredelmnul.Recall Undead SlavesThere's currently no description for this ability...%%%%# KikubaaqudghaEnslave UndeadThere's currently no description for this ability...%%%%Invoke DeathThere's currently no description for this ability...%%%%# YredelemnulAnimate CorpseThere's currently no description for this ability...%%%%Animate Dead abilityThere's currently no description for this ability...%%%%Drain LifeThere's currently no description for this ability...%%%%Control UndeadThere's currently no description for this ability...%%%%# OkawaruMightThere's currently no description for this ability...%%%%HasteThere's currently no description for this ability...%%%%# MakhlebMinor DestructionThere's currently no description for this ability...%%%%Lesser Servant of MakhlebThere's currently no description for this ability...%%%%Major DestructionThere's currently no description for this ability...%%%%Greater Servant of MakhlebThere's currently no description for this ability...%%%%# Sif MunaChannel EnergyThere's currently no description for this ability...%%%%Forget SpellThere's currently no description for this ability...%%%%# TrogBurn BooksThere's currently no description for this ability...%%%%BerserkThere's currently no description for this ability...%%%%Trog's HandThere's currently no description for this ability...%%%%Brothers in ArmsThere's currently no description for this ability...%%%%# ElyvilonDestroy WeaponsThere's currently no description for this ability...%%%%Lesser HealingThere's currently no description for this ability...%%%%PurificationThere's currently no description for this ability...%%%%HealingThere's currently no description for this ability...%%%%RestorationThere's currently no description for this ability...%%%%Greater HealingThere's currently no description for this ability...%%%%# LugonuDepart the AbyssThere's currently no description for this ability...%%%%Bend SpaceThere's currently no description for this ability...%%%%BanishThere's currently no description for this ability...%%%%CorruptThere's currently no description for this ability...%%%%Enter the AbyssThere's currently no description for this ability...%%%%# Nemelex XobehDraw OneThere's currently no description for this ability...%%%%Peek at TwoThere's currently no description for this ability...%%%%Triple DrawThere's currently no description for this ability...%%%%Mark FourThere's currently no description for this ability...%%%%Stack FiveThere's currently no description for this ability...%%%%# BeoghSmitingThere's currently no description for this ability...%%%%Recall Orcish FollowersThere's currently no description for this ability...%%%%Renounce ReligionRenouncing your faith will make your character leave your god (andusually 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')