Skip to content

Commit

Permalink
Merge pull request #41898 from anothersimulacrum/pushme
Browse files Browse the repository at this point in the history
Add back ability to push animals
  • Loading branch information
ZhilkinSerg authored Jul 7, 2020
2 parents b43a35e + aa41da3 commit c9e1ae0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ bool monexamine::pet_menu( monster &z )
attach_bag,
remove_bag,
drop_all,
push_monster,
give_items,
mon_armor_add,
mon_harness_remove,
Expand Down Expand Up @@ -98,6 +99,7 @@ bool monexamine::pet_menu( monster &z )
amenu.text = string_format( _( "What to do with your %s?" ), pet_name );

amenu.addentry( swap_pos, true, 's', _( "Swap positions" ) );
amenu.addentry( push_monster, true, 'p', _( "Push %s" ), pet_name );
amenu.addentry( rename, true, 'e', _( "Rename" ) );
Character &player_character = get_player_character();
if( z.has_effect( effect_has_bag ) ) {
Expand Down Expand Up @@ -221,6 +223,9 @@ bool monexamine::pet_menu( monster &z )
case swap_pos:
swap( z );
break;
case push_monster:
push( z );
break;
case rename:
rename_pet( z );
break;
Expand Down

0 comments on commit c9e1ae0

Please sign in to comment.