Skip to content

Commit

Permalink
NPC's cant read while blind
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramza13 authored and kevingranade committed Jan 4, 2020
1 parent 5575599 commit f7e3493
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/avatar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,8 @@ const player *avatar::get_book_reader( const item &book, std::vector<std::string
has_identified( book.typeId() ) ) {
// Low morale still permits skimming
reasons.push_back( string_format( _( "%s morale is too low!" ), elem->disp_name( true ) ) );
} else if( elem->is_blind() ) {
reasons.push_back( string_format( _( "% is blind." ), elem->disp_name( true ) ) );
} else {
int proj_time = time_to_read( book, *elem );
if( proj_time < time_taken ) {
Expand Down

0 comments on commit f7e3493

Please sign in to comment.