Skip to content

Commit

Permalink
Prune secret recipes from character creation display
Browse files Browse the repository at this point in the history
Actually learned recipes and the displayed list had gone out of sync.
  • Loading branch information
kevingranade authored Jan 4, 2020
1 parent 0e04348 commit 2c5394f
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 2c5394f

Please sign in to comment.