Skip to content

Commit

Permalink
Update src/magic.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
Standing-Storm and github-actions[bot] authored May 23, 2024
1 parent 675b14b commit b043e2d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1252,9 +1252,10 @@ float spell::spell_fail( const Character &guy ) const
( 1.5 );
float psi_effective_skill = 0;
if( is_psi ) {
const float psi_effective_skill_initial = 2 * ( ( guy.get_skill_level( skill() ) * 2 ) - get_difficulty(
guy ) ) + ( guy.get_int() * 1.5 ) + two_thirds_power_level;

const float psi_effective_skill_initial = 2 * ( ( guy.get_skill_level(
skill() ) * 2 ) - get_difficulty(
guy ) ) + ( guy.get_int() * 1.5 ) + two_thirds_power_level;

if( !guy.has_proficiency( proficiency_prof_concentration_basic ) ) {
psi_effective_skill = clamp(psi_effective_skill_initial, static_cast<float>(0), static_cast<float>(24));
} else if( guy.has_proficiency( proficiency_prof_concentration_basic ) && !guy.has_proficiency( proficiency_prof_concentration_intermediate ) ) {
Expand Down

0 comments on commit b043e2d

Please sign in to comment.