Skip to content

Commit

Permalink
Merge pull request #1690 from fmatthew5876/percent_sp
Browse files Browse the repository at this point in the history
Allow percent_sp feature for all 2k3 versions
  • Loading branch information
carstene1ns committed Mar 12, 2019
2 parents 1d19012 + d75f592 commit 9bc9715
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game_battler.cpp
Expand Up @@ -421,8 +421,7 @@ int Game_Battler::CalculateSkillCost(int skill_id) const {
return 0;
}

return (Player::engine == Player::EngineRpg2k3 &&
skill->sp_type == RPG::Skill::SpType_percent)
return (Player::IsRPG2k3() && skill->sp_type == RPG::Skill::SpType_percent)
? GetMaxSp() * skill->sp_percent / 100
: skill->sp_cost;
}
Expand Down

0 comments on commit 9bc9715

Please sign in to comment.