Skip to content

Commit

Permalink
Make it so NO_INGEST adds vitamins instantly
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary-kaelan authored Aug 1, 2024
1 parent 6ec47ad commit 96cf8bd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/consumption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1874,6 +1874,13 @@ static bool consume_med( item &target, Character &you )
you.modify_sleepiness( comest );
you.modify_addiction( comest );
you.modify_morale( target );
nutrients food_nutrients = you.compute_effective_nutrients( target );
for( const auto &vitamin : food_nutrients.vitamins() ) {
std::map<vitamin_id, int> vitamins;
const vitamin_type &vitamin_type = vitamin.first->type();
vitamins[vitamin.first] = vitamin.second;
you.vitamins_mod( you.effect_vitamin_mod( vitamins ) );
}
activate_consume_eocs( you, target );
} else {
// Take by mouth
Expand Down

0 comments on commit 96cf8bd

Please sign in to comment.