Skip to content

Commit

Permalink
Merge pull request #36566 from davidpwbrown/sd_card_teaches_debug_fix
Browse files Browse the repository at this point in the history
Check for never_learn before adding candidate recipes to sdcard
  • Loading branch information
ZhilkinSerg authored Dec 30, 2019
2 parents d56be42 + d5d1a97 commit d0d0722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/iuse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6290,7 +6290,9 @@ static bool einkpc_download_memory_card( player &p, item &eink, item &mc )

for( const auto &e : recipe_dict ) {
const auto &r = e.second;

if( r.never_learn ) {
continue;
}
if( science ) {
if( r.difficulty >= 3 && one_in( r.difficulty + 1 ) ) {
candidates.push_back( &r );
Expand Down

0 comments on commit d0d0722

Please sign in to comment.