From 2c5394fb87fd26f65a0f9d52c5e1592f58da8a4f Mon Sep 17 00:00:00 2001 From: Kevin Granade Date: Sat, 4 Jan 2020 10:31:14 -0800 Subject: [PATCH] Prune secret recipes from character creation display Actually learned recipes and the displayed list had gone out of sync. --- src/newcharacter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newcharacter.cpp b/src/newcharacter.cpp index e5d4d43c5234c..7618df70f0ebc 100644 --- a/src/newcharacter.cpp +++ b/src/newcharacter.cpp @@ -1646,6 +1646,9 @@ tab_direction set_skills( const catacurses::window &w, avatar &u, points_left &p std::map > > 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;