From 7b7a36d0531a016ba81520bec2a4a4177e2ca8ed Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 9 Jun 2008 16:17:48 +0000 Subject: Yikes, so many files! And all I did was add more item evaluation functions for menu colouring and pickup... Added: emergency_item, good_item, dangerous_item, bad_item, and useless_item, all taking into account player species and mutations, so e.g. =see invisible is useless for Naga, and !poison is always bad but only useless if you don't know Evaporate. Never autopickup useless, dangerous (e.g. ?immolation) or inedible items, and simplify the item colour/pickup options accordingly. I'll have to see if pickup.lua is still even needed after this. Removed the menu_colour_prefix_id option as I can't see any reason to turn it off. Oh, and fixed a bug where Kenku were unable to stop levitating if they gained level 15 while levitating. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5658 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemname.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/itemname.h') diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h index 48ae1ad239..18f4709d5a 100644 --- a/crawl-ref/source/itemname.h +++ b/crawl-ref/source/itemname.h @@ -109,6 +109,11 @@ bool item_type_known( const object_class_type base_type, const int sub_type ); bool item_type_tried( const item_def &item ); bool is_interesting_item( const item_def& item ); +bool is_emergency_item( const item_def& item ); +bool is_good_item(const item_def &item); +bool is_bad_item(const item_def &item); +bool is_dangerous_item( const item_def& item ); +bool is_useless_item(const item_def &item); std::string make_name( unsigned long seed, bool all_caps ); -- cgit v1.2.3-54-g00ecf