FR 2029644: Some small tutorial improvements. Switch off autopickup if you see a monster turn invisible. (BR 2085502)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6970 c06c8d41-db1a-0410-9941-cceddc491573
B62LRY6EDGLIYGZCQC6UG76KGGCHQZUP6ZDFBPSWYF352ULQJQOQC
SIDH2P7NBIG5KEOE27XHD3ZT2NQ2OJZFN6VZXWNWYFFY5YVXSSVQC
OMSSJON5IE4LBXJ7CZE52IZRZS7ZICS23SKP4AGLHH3QNCRMEFVAC
Q6WLX2VTRJ3LGDPWBH5WKQM7CIIJ5H6AEIKMXPF2PJA5JX5ZLUZQC
QXD3HX6QQ37PW6HVKIIKGFLO2ACROLUGKK66KFX7ED6SO4FDXB2AC
77H4BWWPPGLM3PLZH4QTAJRXIZTSDVNCOKZE223I437FN2UJ34RQC
LS5XCCGKQHSJQGWLWLGTP2F5OYWK4ND5AQQAGRN6H2HVBSXNCCZAC
HQTS3VQ6PNUZKHNVEWMML7JNAAAKL4DSW3KFSRCCSLGYTDHZFCCAC
NK2TBKWOQBD2ZRGAO4Z3HMZPIN7UX3HNUS2YHEIJUUINUTRMPODQC
GMCNF7YBSN7WQJNHSF3RV2NTHTVP4TABCNP7S26UEIHPAKNCPWGAC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
AV3TMWHWB3XBXQCT34UPMZBSIIKVXIGWQPNEFU4CZSBS3ZOF2CUQC
X5WLJCJVW55SXZVP7IKP7ADCJIGNKN4PKAXFECVR6TNK7XSMZR7QC
BRGAZR5AXWC2IALBVXO5SB354IRQEIRHSK55RZPGFI4AGIOD4LUQC
ARNDCQD3NXQRD5CZFTBQOMID5RPPRRIK647T36FLGHMUN62MF7WAC
AM7QPHDAWNXHLUEVUHVRHG2RO2DOIEFFU4GV3DCIROW6O5HW7H4AC
25CH7HH4LKXFIZ75YNMXS3TSXO6O27DYSOPLOD45K4OCNFWLS4LQC
HIRKGUMNJPWKSVTR6TVBPD3MWNA63CEHCLCIPWEMGDFHVB3NPLDQC
HMC247EGUJ3Q25DQ3VKUCIGLIO4SZORFQQWAPAF6S2WLQY3WU5TQC
text << "You just miscast a spell. If the spell casting success "
"chance is high (which can be checked by entering <w>z\?</w>) "
"then a miscast merely means the spell is not working, along "
"with a harmless side effect. However, for spells with a "
"low success rate there's a chance of contaminating yourself "
"with magical energy, plus a chance of an additional harmful "
"side effect. Normally this isn't a problem, since magical "
"contamination bleeds off over time, but if you're repeatedly "
"contaminated in a short amount of time you'll mutate or "
"suffer from other ill side effects.\n\n"
{
text << "You just miscast a spell. ";
"Note that a miscast spell will still consume the full amount "
item_def *armour = you.slot_item(EQ_BODY_ARMOUR);
item_def *shield = you.slot_item(EQ_SHIELD);
if (armour && !is_light_armour(*armour) || shield)
{
text << "Wearing heavy body armour or using a shield, especially a "
"large one, can severely hamper your spellcasting "
"abilities. You can check the effect of this by comparing "
"the success rates on the <w>z\?</w> screen with and "
"without the item being worn.\n\n";
}
text << "If the spellcasting success chance is high (which can be "
"checked by entering <w>z\?</w>) then a miscast merely means "
"the spell is not working, along with a harmless side effect. "
"However, for spells with a low success rate there's a chance "
"of contaminating yourself with magical energy, plus a chance "
"of an additional harmful side effect. Normally this isn't a "
"problem, since magical contamination bleeds off over time, "
"but if you're repeatedly contaminated in a short amount of "
"time you'll mutate or suffer from other ill side effects.\n\n";
text << "Note that a miscast spell will still consume the full amount "
// Don't swap weapons just because you can't see it anymore!
you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] = 0;
if (!player_monster_visible(monster))
{
// Don't swap weapons just because you can't see it anymore!
you.attribute[ATTR_WEAPON_SWAP_INTERRUPTED] = 0;
// Also turn off autopickup.
Options.autopickup_on = false;
mpr("Deactivating autopickup; reactivate with Ctrl-A.",
MSGCH_WARN);