Skip to content

Commit

Permalink
Smooth out npc fear based on player strength (CleverRaven#65151)
Browse files Browse the repository at this point in the history
  • Loading branch information
sparr authored Apr 18, 2023
1 parent d0c703f commit 2b4112e
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/npc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1609,15 +1609,7 @@ npc_opinion npc::get_opinion_values( const Character &you ) const
}

///\EFFECT_STR increases NPC fear of the player
if( you.str_max >= 16 ) {
npc_values.fear += 2;
} else if( you.str_max >= 12 ) {
npc_values.fear += 1;
} else if( you.str_max <= 3 ) {
npc_values.fear -= 3;
} else if( you.str_max <= 5 ) {
npc_values.fear -= 1;
}
npc_values.fear += ( you.str_max / 4 ) - 2;

// is your health low
for( const std::pair<const bodypart_str_id, bodypart> &elem : get_player_character().get_body() ) {
Expand Down

0 comments on commit 2b4112e

Please sign in to comment.