Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added 2 else if's in npctalk.cpp to check for blindness, and if blind… #56917

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions src/npctalk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1117,10 +1117,14 @@ std::string dialogue::dynamic_line( const talk_topic &the_topic ) const
return _( "&You yell." );
}
}
} else if( topic == "TALK_SIZE_UP" ) {
} else if( topic == "TALK_SIZE_UP" && !player_character.is_blind() ) {
return actor( true )->evaluation_by( *actor( false ) );
} else if( topic == "TALK_LOOK_AT" ) {
} else if( topic == "TALK_SIZE_UP" && player_character.is_blind() ) {
return _( "You cannot size up characters when blinded." );
} else if( topic == "TALK_LOOK_AT" && !player_character.is_blind() ) {
return "&" + actor( true )->short_description();
} else if( topic == "TALK_LOOK_AT" && player_character.is_blind() ) {
return _( "You cannot look at characters when blinded." );
} else if( topic == "TALK_OPINION" ) {
return "&" + actor( true )->opinion_text();
} else if( topic == "TALK_MIND_CONTROL" ) {
Expand Down