Skip to content

Commit

Permalink
Fix cable charger logic on solar pack (#35656)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman authored and kevingranade committed Nov 23, 2019
1 parent a1f2963 commit 07d4e61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8718,8 +8718,8 @@ bool item::process_cable( player *carrier, const tripoint &pos )
}
std::string state = get_var( "state" );
if( state == "solar_pack_link" || state == "solar_pack" ) {
if( !carrier->has_item( *this ) || ( !carrier->is_wearing( "solarpack_on" ) ||
!carrier->is_wearing( "q_solarpack_on" ) ) ) {
if( !carrier->has_item( *this ) || !( carrier->is_wearing( "solarpack_on" ) ||
carrier->is_wearing( "q_solarpack_on" ) ) ) {
carrier->add_msg_if_player( m_bad, _( "You notice the cable has come loose!" ) );
reset_cable( carrier );
return false;
Expand Down

0 comments on commit 07d4e61

Please sign in to comment.