Skip to content

Commit

Permalink
Merge pull request #37274 from saurocyte/filthy_strap_fix
Browse files Browse the repository at this point in the history
Fix filthy wearable weapon drops
  • Loading branch information
Rivet-the-Zombie authored Jan 22, 2020
2 parents 041c666 + 4a47f35 commit 3e11834
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/monster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2323,7 +2323,8 @@ void monster::drop_items_on_death()

if( has_flag( MF_FILTHY ) && get_option<bool>( "FILTHY_CLOTHES" ) ) {
for( const auto &it : dropped ) {
if( it->is_armor() || it->is_pet_armor() ) {
if( ( it->is_armor() || it->is_pet_armor() ) && !it->is_gun() ) {
// handle wearable guns as a special case
it->item_tags.insert( "FILTHY" );
}
}
Expand Down

0 comments on commit 3e11834

Please sign in to comment.