Skip to content

Commit

Permalink
Characters with UNDINE_SLEEP_WATER mutation sleep less in water
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Oct 28, 2024
1 parent 93ba824 commit a680ecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/player_hardcoded_effects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ static const trait_id trait_INFRESIST( "INFRESIST" );
static const trait_id trait_M_IMMUNE( "M_IMMUNE" );
static const trait_id trait_M_SKIN3( "M_SKIN3" );
static const trait_id trait_THRESH_MYCUS( "THRESH_MYCUS" );
static const trait_id trait_UNDINE_SLEEP_WATER( "UNDINE_SLEEP_WATER" );
static const trait_id trait_WATERSLEEP( "WATERSLEEP" );

static const vitamin_id vitamin_blood( "blood" );
Expand Down Expand Up @@ -1090,7 +1091,7 @@ static void eff_fun_sleep( Character &u, effect &it )
}
}
}
if( u.has_trait( trait_WATERSLEEP ) ) {
if( u.has_trait( trait_WATERSLEEP ) || u.has_trait( trait_UNDINE_SLEEP_WATER ) ) {
u.mod_sleepiness( -3 ); // Fish sleep less in water
}
}
Expand Down

0 comments on commit a680ecd

Please sign in to comment.