Fix bad message when using 'W' with no armour and crash when attempting to enchant armour with no enchantable armour in inventory. Tweak '{' to only prompt if at least one of autoinscription or clearing an existing inscription apply. (FR 2017541)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6567 c06c8d41-db1a-0410-9941-cceddc491573
WFIA2XFIWZF3XVLH52GC57XK7A6ECI3K6P7GRZSHPIUBX66OF3OQC
TSWGI2UKAVTFR62WZKYU2IL7MCGWXOIRETT7GYOSTMEWVHLH5WKQC
KNCEMOC5TMWHTKCWF7CMYNHLGCXOLGMTXLEIHMEFBGM5FR26GRXAC
RNJX2RDBDA62DSAUIWVVPFS7YNIU3GEOXDWJUABDS5DS5QGS3LAQC
NQ5MZTGKHPSXGP6F7BIEFPGDN2CVBYOREAWOKRQOCXK2PCQYJWGQC
QKBKV43FJRXHZ7IOHWNNFXYT7G7NGVDBNO7Z7ZJBDU3SFP4DZIHAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC
AZ2RCXNVULJUSCBDBK3VARTUCTPEJXHTA7ALP73S4EXLJB6YYB5QC
VEPHAIXR3GSPHBLOW5DWFFU4ULEMVWRQG4G5PKSKRA2I6RHYROUAC
RX6575DZOHRUXQUZH34YZGPZJF4STUPLBQDIVTINA2L6LVCKRIGQC
4JHALUQLYAZQSH6MHLCS4EIIRHIT3Y4IYT2CE66NHSSWZFZY3SZQC
TDAVD56MGLFSMJLPLSYLEVW7MBRMT7V5BNII4TRWVDIHH47CD2OAC
4GYZYBY7FFORRNPIEFTV4ZM2C7Z6D2KTQOM537ZCC2YBXT2TNSHAC
if (need_autoinscribe || is_inscribed)
// Don't prompt for whether to inscribe in the first place if the
// player is using '{' - unless autoinscribing or clearing an
// existing inscription become an option.
if (!proper_prompt || need_autoinscribe || is_inscribed)
if (proper_prompt)
mpr(prompt.c_str(), MSGCH_PROMPT);
else
{
prompt = "<cyan>" + prompt + "</cyan>";
formatted_string::parse_string(prompt).display();
if (proper_prompt)
mpr(prompt.c_str(), MSGCH_PROMPT);
else
{
prompt = "<cyan>" + prompt + "</cyan>";
formatted_string::parse_string(prompt).display();
if (Options.tutorial_left && wherey() <= get_number_of_lines() - 5)
tutorial_inscription_info(need_autoinscribe, prompt);
if (Options.tutorial_left && wherey() <= get_number_of_lines() - 5)
tutorial_inscription_info(need_autoinscribe, prompt);
}
did_prompt = true;