Skip to content

Commit

Permalink
Update monexamine.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramza13 committed Oct 2, 2021
1 parent 0436c6d commit e741a3a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@ bool monexamine::pet_menu( monster &z )
remove_bat,
insert_bat,
check_bat,
attack
attack,
talk_to
};

uilist amenu;
Expand Down Expand Up @@ -665,6 +666,9 @@ bool monexamine::pet_menu( monster &z )
if( z.has_flag( MF_PAY_BOT ) ) {
amenu.addentry( pay, true, 'f', _( "Manage your friendship with %s" ), pet_name );
}
if( !z.type->chat_topics.empty() ) {
amenu.addentry( talk_to, true, 'c', _( "Talk to %s" ), pet_name );
}
if( !z.has_flag( MF_RIDEABLE_MECH ) ) {
if( z.has_flag( MF_PET_MOUNTABLE ) && player_character.can_mount( z ) ) {
amenu.addentry( mount, true, 'r', _( "Mount %s" ), pet_name );
Expand Down Expand Up @@ -792,6 +796,9 @@ bool monexamine::pet_menu( monster &z )
get_player_character().melee_attack( z, true );
}
break;
case talk_to:
get_avatar().talk_to( get_talker_for( z ) );
break;
default:
break;
}
Expand Down

0 comments on commit e741a3a

Please sign in to comment.