Skip to content

Commit

Permalink
compress check
Browse files Browse the repository at this point in the history
  • Loading branch information
David Brown committed Dec 18, 2019
1 parent 0a7f989 commit 5c96d39
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/crafting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1211,14 +1211,11 @@ void player::complete_craft( item &craft, const tripoint &loc )

if( newit.made_of( LIQUID ) ) {
liquid_handler::handle_all_liquid( newit, PICKUP_RANGE );
} else if( loc == tripoint_zero ) {
if( newit.is_two_handed( *this ) && ( !has_two_arms() || worn_with_flag( "RESTRICT_HANDS" ) ) ) {
set_item_map_or_vehicle( *this, pos(), newit );
} else {
wield_craft( *this, newit );
}
} else if( loc == tripoint_zero && !newit.is_two_handed( *this ) && has_two_arms() &&
!worn_with_flag( "RESTRICT_HANDS" ) ) {
wield_craft( *this, newit );
} else {
set_item_map_or_vehicle( *this, loc, newit );
set_item_map_or_vehicle( *this, pos(), newit );
}
}

Expand Down

0 comments on commit 5c96d39

Please sign in to comment.