Skip to content

Commit

Permalink
fix: leashing animal using entire stack of rope (#4033)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarf005 authored Dec 31, 2023
1 parent 22d0717 commit e85db34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monexamine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ void monexamine::add_leash( monster &z )
return;
}
item *rope_item = rope_inv[index - 1];
z.set_tied_item( rope_item->detach( ) );
z.set_tied_item( rope_item->split( 1 ) );
z.add_effect( effect_leashed, 1_turns );
z.get_effect( effect_leashed ).set_permanent();
add_msg( _( "You add a leash to your %s." ), z.get_name() );
Expand Down

0 comments on commit e85db34

Please sign in to comment.