Skip to content

Commit

Permalink
remove eating from activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Oct 14, 2024
1 parent 26fbbbd commit 6c39fdd
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7122,16 +7122,6 @@ bool Character::invoke_item( item *used, const std::string &method, const tripoi
return false;
}

if( actually_used->is_comestible() ) {
const bool ret = consume_effects( *used );
const int consumed = used->activation_consume( charges_used.value(), pt, this );
if( consumed == 0 ) {
// Nothing was consumed from within the item. "Eat" the item itself away.
i_rem( actually_used );
}
return ret;
}

actually_used->activation_consume( charges_used.value(), pt, this );

if( actually_used->has_flag( flag_SINGLE_USE ) || actually_used->is_bionic() ||
Expand Down

0 comments on commit 6c39fdd

Please sign in to comment.