Skip to content

Commit

Permalink
Spawn beartrap on monster escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
Night-Pryanik committed Sep 18, 2024
1 parent abbb6ce commit 94cc253
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2425,6 +2425,7 @@ bool monster::move_effects( bool )
if( type->melee_dice * type->melee_sides >= 18 ) {
if( x_in_y( type->melee_dice * type->melee_sides, 200 ) ) {
remove_effect( effect_beartrap );
here.spawn_item( pos_bub(), "beartrap" );
if( u_see_me && get_option<bool>( "LOG_MONSTER_MOVE_EFFECTS" ) ) {
add_msg( _( "The %s escapes the bear trap!" ), name() );
}
Expand Down

0 comments on commit 94cc253

Please sign in to comment.