Skip to content

Commit

Permalink
Uncrafting does not require MULTIMETER
Browse files Browse the repository at this point in the history
  • Loading branch information
mugling committed Jun 6, 2016
1 parent a1e4eeb commit 3ba27a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/requirements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@ const requirement_data requirement_data::disassembly_requirements() const
qualities.resize( std::distance( qualities.begin(), itr ) );
}

static quality_id quality_multimeter( "MULTIMETER" );
qualities.erase( std::remove_if( qualities.begin(), qualities.end(), [&]( const quality_requirement &e ) {
return e.type == quality_multimeter;
} ), qualities.end() );

// Remove empty variant sections
ret.tools.erase( std::remove_if( ret.tools.begin(), ret.tools.end(),
[]( const std::vector<tool_comp> &tcv ) {
Expand Down

0 comments on commit 3ba27a4

Please sign in to comment.