Made 'empty' and 'tried' play nice with each other.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@513 c06c8d41-db1a-0410-9941-cceddc491573
HDLNRHAMFVDM4QCZMY6COBYZ35ODPR5PONT4UE77UAZ7GEE2FLHQC
static bool is_tried_type( int basetype, int subtype )
{
switch ( basetype )
{
case OBJ_SCROLLS:
return id[IDTYPE_SCROLLS][subtype] == ID_TRIED_TYPE;
case OBJ_POTIONS:
return id[IDTYPE_POTIONS][subtype] == ID_TRIED_TYPE;
case OBJ_WANDS:
return id[IDTYPE_WANDS][subtype] == ID_TRIED_TYPE;
default:
return false;
}
}