Skip to content

Commit

Permalink
Fix NPC's unnecessary hesitation in whether to sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
wwkk222208 committed Mar 14, 2024
1 parent 4355281 commit 4a47e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/npcmove.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2539,7 +2539,7 @@ npc_action npc::address_needs( float danger )
return false;
};
// TODO: More risky attempts at sleep when exhausted
if( one_in( 3 ) && could_sleep() ) {
if( could_sleep() ) {
if( !is_player_ally() ) {
// TODO: Make tired NPCs handle sleep offscreen
set_fatigue( 0 );
Expand Down

0 comments on commit 4a47e98

Please sign in to comment.