From 230a2a4a59a5c3575f32bd91a60b62f633cce8de Mon Sep 17 00:00:00 2001 From: anothersimulacrum <42699974+anothersimulacrum@users.noreply.github.com> Date: Thu, 7 May 2020 10:12:31 -0700 Subject: [PATCH] Remove old skill boost migration code --- src/character.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/character.cpp b/src/character.cpp index 234a6af7ad944..a3c62857a7f95 100644 --- a/src/character.cpp +++ b/src/character.cpp @@ -3337,23 +3337,6 @@ void Character::die( Creature *nkiller ) void Character::apply_skill_boost() { for( const skill_boost &boost : skill_boost::get_all() ) { - // For migration, reset previously applied bonus. - // Remove after 0.E or so. - const std::string bonus_name = boost.stat() + std::string( "_bonus" ); - std::string previous_bonus = get_value( bonus_name ); - if( !previous_bonus.empty() ) { - if( boost.stat() == "str" ) { - str_max -= atoi( previous_bonus.c_str() ); - } else if( boost.stat() == "dex" ) { - dex_max -= atoi( previous_bonus.c_str() ); - } else if( boost.stat() == "int" ) { - int_max -= atoi( previous_bonus.c_str() ); - } else if( boost.stat() == "per" ) { - per_max -= atoi( previous_bonus.c_str() ); - } - remove_value( bonus_name ); - } - // End migration code int skill_total = 0; for( const std::string &skill_str : boost.skills() ) { skill_total += get_skill_level( skill_id( skill_str ) );