Skip to content

Commit

Permalink
Hostile NPCs are hostile
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Dec 6, 2024
1 parent 4de75b0 commit c5e8a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/npc.cpp
Original file line number Diff line number Diff line change
@@ -2474,7 +2474,8 @@ bool npc::is_minion() const

bool npc::guaranteed_hostile() const
{
return is_enemy() || ( my_fac && my_fac->likes_u < -10 );
return attitude_to( get_player_character() ) == Attitude::HOSTILE || is_enemy() ||
( my_fac && my_fac->likes_u < -10 );
}

bool npc::is_walking_with() const

0 comments on commit c5e8a7a

Please sign in to comment.