Skip to content

Commit

Permalink
Merge pull request #35561 from anothersimulacrum/slime-spawn
Browse files Browse the repository at this point in the history
Prevent slimespring spawning dehydration
  • Loading branch information
ZhilkinSerg authored Nov 16, 2019
2 parents 93051a5 + d42e964 commit 7796df3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/consumption.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ bool player::consume_effects( item &food )
// Incredibly minor stuff like this shouldn't require complexity
if( !is_npc() && has_trait( trait_id( "SLIMESPAWNER" ) ) &&
( get_healthy_kcal() < get_stored_kcal() + 4000 &&
get_thirst() - stomach.get_water() / 5_ml < 40 ) ) {
get_thirst() - stomach.get_water() / 5_ml < -20 ) && get_thirst() < 40 ) {
add_msg_if_player( m_mixed,
_( "You feel as though you're going to split open! In a good way?" ) );
mod_pain( 5 );
Expand Down

0 comments on commit 7796df3

Please sign in to comment.