you've zapped them.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1675 c06c8d41-db1a-0410-9941-cceddc491573
LBIXGRQC64MEHG7L74PCGU3EXD3WVUCDR7DHEHCI5OCOJAXSA7PQC M7UBBA4B6VWC4UDEJWOYB3VW7QCLRKJHOKVRJE6JFZW3JSMQCYTAC VNHFP63ZLLZU3A3PLXP4BITX57DUIYDHFOHQYK3BOBHV3S64G26QC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC DTO3EUKWHZ5RJNGNCFYXSOVTIPVXPP637F2W7WFGYKJ7JK7VNKNQC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC 77H4BWWPPGLM3PLZH4QTAJRXIZTSDVNCOKZE223I437FN2UJ34RQC CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC //
// plus2 tracks how many times the player has zapped it.// If it is -1, then the player knows it's empty.// If it is -2, then the player has messed with it somehow// (presumably by recharging), so don't bother to display the// count.mitm[p].plus2 = 0;
if ( !item_ident(you.inv[item_slot], ISFLAG_KNOW_PLUSES) ){if ( you.inv[item_slot].inscription.find("empty") ==std::string::npos ){if ( !you.inv[item_slot].inscription.empty() )you.inv[item_slot].inscription += ' ';you.inv[item_slot].inscription += "empty";}}
// Remove the "empty" autoinscription, if present.// Return true if the inscription was there, false otherwise.bool remove_empty_inscription( item_def& item ){const char* empty_inscription = "empty";size_t p = item.inscription.find(empty_inscription);if ( p != std::string::npos ){// found it, delete itsize_t prespace = 0;// if preceded by a space, delete that tooif ( p != 0 && item.inscription[p-1] == ' ' )prespace = 1;item.inscription =item.inscription.substr(0, p - prespace) +item.inscription.substr(p + strlen(empty_inscription),std::string::npos);return true;}elsereturn false;}