1788159: Mummy priests don't get potions either. 1787377: Lugonu's Banish doesn't work on self 1786808: More feedback for travelling. 1784235: Randomized staff descriptions. 1774996: /random effect autoIDs for fireball 1768803: Extended inscription warning use.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2057 c06c8d41-db1a-0410-9941-cceddc491573
5P6MEKBISK6NI4MULM75HHFBQW5MXITSZJDGLLIDKJ7G24F7XYNAC AUCFV2PP6IAG2Z5KSQ5TASSEWYR5BJOZ2BGWUXDK343SNGWLGGCAC UZ6N6HOUPGVSPC5NQROEEDWMEGJA5XUWUY2AKH5QG65AZ25PVXDAC SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC 45FTVJJ5FMXBXQ2GVUZVJZU6Y6NUYG2JZIHWVMONA7QYYCZQSM2QC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC DTO3EUKWHZ5RJNGNCFYXSOVTIPVXPP637F2W7WFGYKJ7JK7VNKNQC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC OQ4KB7QCJSK7GSW3DYBARH4DCB75HFKLUSOSOZZZ4IUFKNGFRUDQC VJMZ3UWE4TY2RPKX32HI2K6OAZJKULKWJISAOTU2W5UHKUJ463NQC CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC 2ESKXYN266CEMLSL6DNCKG4REDO34FXL4ODVGMWDJTNJRKMXWCRQC if (verbose && target.id != current)mpr("Sorry, I don't know how to get there.");
if (verbose){if (target.id != current || target.pos.x != -1 && target.pos != you.pos())mpr("Sorry, I don't know how to get there.");if (target.id == current && target.pos.x != -1 && target.pos == you.pos())mpr("You're already here!");}
}// checks if current item (to be removed) has a warning inscription// and prompts the user for confirmationstatic bool check_old_item_warning( const item_def& item,operation_types oper ){item_def old_item;std::string prompt = "";if (oper == OPER_WIELD) // can we safely unwield old item?{if (you.equip[EQ_WEAPON] == -1)return (true);old_item = you.inv[you.equip[EQ_WEAPON]];if (!has_warning_inscription(old_item, OPER_WIELD))return (true);prompt += "Really unwield ";}else if (oper == OPER_WEAR) // can we safely take off old item?{equipment_type eq_slot = get_armour_slot(item);if (you.equip[eq_slot] == -1)return (true);old_item = you.inv[you.equip[eq_slot]];if (!has_warning_inscription(old_item, OPER_TAKEOFF))return (true);prompt += "Really take off ";}else if (oper == OPER_PUTON) // can we safely remove old item?{if (jewellery_is_amulet(item)){if (you.equip[EQ_AMULET] == -1)return (true);old_item = you.inv[you.equip[EQ_AMULET]];if (!has_warning_inscription(old_item, OPER_TAKEOFF))return (true);prompt += "Really remove ";}else // rings handled in prompt_ring_to_removereturn (true);}else // anything else doesn't have a counterpartreturn (true);// now askprompt += old_item.name(DESC_INVENTORY);prompt += '?';return yesno(prompt.c_str(), false, 'n');