engine/translators/source/InventoryTranslator.cpp
// Check to see if an item can be displayed.
//
// If the squishy filter is false, then the types must match exactly.  Otherwise, similar slots (left hand/right hand/ammunition, or right
// finger/left finger).
Check to see if an item can be displayed.
If the squishy filter is false, then the types must match exactly.  Otherwise, similar slots (left hand/right hand/ammunition, or right
finger/left finger).
Check to see if an item can be displayed . If the squishy filter is false then the types must match exactly . Otherwise similar slots ( left hand / right hand / ammunition or right finger / left finger ) .
bool InventoryTranslator::is_applicable_for_display(ItemPtr item, const list<IItemFilterPtr>& display_filter_list)
{
  for (IItemFilterPtr display_filter : display_filter_list)
  {
    if (!display_filter->passes_filter(item))
    {
      return false;
    }
  }
  return true;
}
bool InventoryTranslator :: is_applicable_for_display ( ItemPtr item , const list < IItemFilterPtr > & display_filter_list ) { for ( IItemFilterPtr display_filter : display_filter_list ) { if ( ! display_filter -> passes_filter ( item ) ) { return false ; } } return true ; }
Check to see if an item can be displayed.
Check to see if an item can be displayed .
// All the display filters have passed, so the item is applicable for display.