Skip to content

Commit

Permalink
Small tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Oct 21, 2024
1 parent 0377cfc commit d071fdd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/avatar_action.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1087,8 +1087,7 @@ void avatar_action::use_item( avatar &you, item_location &loc, std::string const
}
}

item thing = *loc.get_item();
if( !avatar_action::check_stealing( get_player_character(), thing ) ) {
if( !avatar_action::check_stealing( get_player_character(), *loc.get_item() ) ) {
return;
}

Expand All @@ -1100,7 +1099,7 @@ void avatar_action::use_item( avatar &you, item_location &loc, std::string const
}

if( loc->wetness && loc->has_flag( flag_WATER_BREAK_ACTIVE ) ) {
if( query_yn( _( "This item is still wet and it will break if you turn it on. Proceed?" ) ) ) {
if( query_yn( _( "This item is still wet and it will break if you turn it on. Proceed?" ) ) ) {
loc->deactivate();
loc.get_item()->set_fault( faults::random_of_type( "wet" ) );
// An electronic item in water is also shorted.
Expand Down

0 comments on commit d071fdd

Please sign in to comment.