void profession::check_definition() const { check_item_definitions( _starting_items ); check_item_definitions( _starting_items_female ); check_item_definitions( _starting_items_male ); for( auto const &a : _starting_CBMs ) { if( !is_valid_bionic( a ) ) { debugmsg( "bionic %s for profession %s does not exist", a.c_str(), id.c_str() ); } } for( auto &t : _starting_traits ) { if( !mutation_branch::has( t ) ) { debugmsg( "trait %s for profession %s does not exist", t.c_str(), id.c_str() ); } } for( const auto &elem : _starting_skills ) { if( !elem.first.is_valid() ) { debugmsg( "skill %s for profession %s does not exist", elem.first.c_str(), id.c_str() ); } } }
void profession::check_definition() const { check_item_definitions( legacy_starting_items ); check_item_definitions( legacy_starting_items_female ); check_item_definitions( legacy_starting_items_male ); if( !no_bonus.empty() && !item::type_is_defined( no_bonus ) ) { debugmsg( "no_bonus item '%s' is not an itype_id", no_bonus.c_str() ); } if( !item_group::group_is_defined( _starting_items ) ) { debugmsg( "_starting_items group is undefined" ); } if( !item_group::group_is_defined( _starting_items_male ) ) { debugmsg( "_starting_items_male group is undefined" ); } if( !item_group::group_is_defined( _starting_items_female ) ) { debugmsg( "_starting_items_female group is undefined" ); } for( auto const &a : _starting_CBMs ) { if( !a.is_valid() ) { debugmsg( "bionic %s for profession %s does not exist", a.c_str(), id.c_str() ); } } for( auto &t : _starting_traits ) { if( !t.is_valid() ) { debugmsg( "trait %s for profession %s does not exist", t.c_str(), id.c_str() ); } } for( const auto &elem : _starting_skills ) { if( !elem.first.is_valid() ) { debugmsg( "skill %s for profession %s does not exist", elem.first.c_str(), id.c_str() ); } } }