Skip to content

Commit

Permalink
Intelligence affects exp rates based on current int, not max int (#39902
Browse files Browse the repository at this point in the history
)

* change int effect from base to current
  • Loading branch information
CodeBandit authored Apr 26, 2020
1 parent a92d6d1 commit f7bd23a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9937,7 +9937,7 @@ int Character::adjust_for_focus( int amount ) const
if( has_trait( trait_SLOWLEARNER ) ) {
effective_focus -= 15;
}
effective_focus += ( get_int_base() - get_option<int>( "INT_BASED_LEARNING_BASE_VALUE" ) ) *
effective_focus += ( get_int() - get_option<int>( "INT_BASED_LEARNING_BASE_VALUE" ) ) *
get_option<int>( "INT_BASED_LEARNING_FOCUS_ADJUSTMENT" );
double tmp = amount * ( effective_focus / 100.0 );
return roll_remainder( tmp );
Expand Down

0 comments on commit f7bd23a

Please sign in to comment.