Skip to content

Commit

Permalink
Merge pull request #40344 from RoyBerube/engorge-on-infinite
Browse files Browse the repository at this point in the history
Fixes issue #40225
  • Loading branch information
ZhilkinSerg authored May 8, 2020
2 parents 5a64d75 + 5f36fd1 commit 92731b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/consumption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,7 @@ ret_val<edible_rating> Character::will_eat( const item &food, bool interactive )
add_consequence( _( "Your stomach won't be happy (not rotten enough)." ), ALLERGY_WEAK );
}

if( food.charges > 0 && stomach.stomach_remaining( *this ) < food.volume() / food.charges &&
!food.has_infinite_charges() ) {
if( food.charges > 0 && food.charges_per_volume( stomach.stomach_remaining( *this ) ) < 1 ) {
if( edible ) {
add_consequence( _( "You're full already and will be forcing yourself to eat." ), TOO_FULL );
} else {
Expand Down

0 comments on commit 92731b4

Please sign in to comment.