can use matches like <Short Blades.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1832 c06c8d41-db1a-0410-9941-cceddc491573
SSCG2FLJMUTTIRXBFSPLAUUBUIN375ZGL5UOAF3SC62ZIILSMMKAC 5YQTH6RQC3LMWLMASLEXCJVCDBDJLS36CYNI2Q4SOLZMJTMBVPLQC 2YSMM7QMFZOPD5NXAD2OAMDJEY5LOZO4NCYBC7UCQVANKINJRNBAC SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC 2EF3QUVPUQAKBTZKLKQ5B73Z26TXX2H2G2MKIMXD7B7BSDCYE7SAC ILOED4VB4I6VPAUTR75ZWX6MXDYXB5DO2EDK2UH67O3HNKWV23RQC T4IH76FA5TWHFOZUJFHLQXQJENJHWTUZZP4EGNA7D4GTZY7D4ZKAC RPOZZWKG5GLPHVZZ7ZKMKS64ZMV2LDCQSARBJFJ6FZOTOKCQO7FAC 6NWCJ2QEHO3JHHEZPHNSZXGCAH4B7CJUH7C3H6JBTG4ENCKDV7KAC RREJL4WZKWFEMA62AC5G5UDTOXMW4UULIQXVA5RPFASPODMHQZ7AC K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC CIPVRZGLOZHCERK6YPOBV3P2E4IAB4H6D5EHLRQE2O5E4P4VCBUAC 547JREUJXTZNYVGHNNAET5F5O5JYYGNTDQB6ABZNT7YX5EY64OHAC ZVK4J5HTKFNOOIVCI62ZWEYGXEE5TYJ65DLYYZAZWTADFSXE62ZAC 6QWZDCP5HGYLTJO3WWYJJGRRT7QFY6IG64TC7TUB553Z7GAA2HIQC 34C4U6EQWERY75GZJKUCM5KVGU2OUICETS5LGZF6RMKMZT4R5SQAC W52PCSHX72WAMWKG6L4BPUBVMO6E72KYYBNKAA7554KNOTY6V7WQC if ( (item->base_type == OBJ_BOOKS &&item_type_known(*item) &&item->sub_type != BOOK_MANUAL &&item->sub_type != BOOK_DESTRUCTION)|| count_staff_spells(*item, true) > 1 )
if ((item->base_type == OBJ_BOOKS&& item_type_known(*item)&& item->sub_type != BOOK_MANUAL&& item->sub_type != BOOK_DESTRUCTION)|| count_staff_spells(*item, true) > 1)
---- Available annotations:-- {artefact} for identified artefacs.-- {ego} for identified branded items.-- { <skill> } - the relevant weapon skill for weapons.---- You can optionally annotate items with the item class name (such as-- "weapon" for weapons) by setting-- annotate_item_class = true-- in your init.txt.---- The full list of item class names is:-- gold, weapon, missile, armour, wand, food, scroll, jewelry, potion,-- book, staff, orb, misc, carrion
if item.artifact(it) thenannot = annot .. "{artefact} "elseif item.branded(it) thenannot = annot .. "{ego} "elseif item.class(it, true) == "book" thenannot = annot .. "{book} "end
local skill = item.weap_skill(it)if skill thenannot = annot .. "{" .. skill .. "} "end
local skill = item.weap_skill(it)if skill thenannot = annot .. "{" .. skill .. "} "end
if ch_annotate_item_class == nil thench_annotate_item_class = opt_boolean("annotate_item_class")endif ch_annotate_item_class thenannot = annot .. "{" .. item.class(it, true) .. "}"end
const std::string iname = item.name(DESC_PLAIN);
return userdef_annotate_item(STASH_LUA_SEARCH_ANNOTATE, &item, true)+ item.name(DESC_PLAIN);}static bool is_denied_autopickup(const item_def &item, std::string &iname){if (iname.empty())iname = autopickup_item_name(item);
function opt_boolean(optname)local optval = options[optname]return optval == "true" or optval == "yes"end