Skip to content

Commit

Permalink
Merge pull request #36699 from CleverRaven/kevingranade-fix-learned-r…
Browse files Browse the repository at this point in the history
…ecipe-display

Prune secret recipes from character creation display
  • Loading branch information
Rivet-the-Zombie committed Jan 5, 2020
2 parents 921a9f4 + 2c5394f commit cac8083
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/newcharacter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1646,6 +1646,9 @@ tab_direction set_skills( const catacurses::window &w, avatar &u, points_left &p
std::map<std::string, std::vector<std::pair<std::string, int> > > recipes;
for( const auto &e : recipe_dict ) {
const auto &r = e.second;
if( r.has_flag( "SECRET" ) ) {
continue;
}
//Find out if the current skill and its level is in the requirement list
auto req_skill = r.required_skills.find( currentSkill->ident() );
int skill = req_skill != r.required_skills.end() ? req_skill->second : 0;
Expand Down

0 comments on commit cac8083

Please sign in to comment.