Skip to content

Commit

Permalink
Merge pull request CleverRaven#67342 from mqrause/use_menu_fix
Browse files Browse the repository at this point in the history
Fix use menu denial message and invoking items for comestibles without charges
  • Loading branch information
Rivet-the-Zombie authored Aug 2, 2023
2 parents e0bf2b7 + cd87d48 commit e2d97b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10581,6 +10581,10 @@ bool item::ammo_sufficient( const Character *carrier, int qty ) const
return ammo_remaining( carrier, true ) >= qty;
}

if( is_comestible() ) {
return true;
}

return shots_remaining( carrier ) >= qty;
}

Expand Down

0 comments on commit e2d97b1

Please sign in to comment.