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 b043e2d commit a5455e0
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/magic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,11 +1257,16 @@ float spell::spell_fail( const Character &guy ) const
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 ) ) {
psi_effective_skill = clamp(psi_effective_skill_initial, static_cast<float>(0), static_cast<float>(31));
} else if( guy.has_proficiency( proficiency_prof_concentration_intermediate ) && !guy.has_proficiency( proficiency_prof_concentration_master) ) {
psi_effective_skill = clamp(psi_effective_skill_initial, static_cast<float>(0), static_cast<float>(37));
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 ) ) {
psi_effective_skill = clamp( psi_effective_skill_initial, static_cast<float>( 0 ),
static_cast<float>( 31 ) );
} else if( guy.has_proficiency( proficiency_prof_concentration_intermediate ) &&
!guy.has_proficiency( proficiency_prof_concentration_master ) ) {
psi_effective_skill = clamp( psi_effective_skill_initial, static_cast<float>( 0 ),
static_cast<float>( 37 ) );
} else {
psi_effective_skill = clamp(psi_effective_skill_initial, static_cast<float>(0), static_cast<float>(45));
}
Expand Down

0 comments on commit a5455e0

Please sign in to comment.