Skip to content

Commit

Permalink
Fix burnt vegetation hiding deep pits under ash piles (#3163)
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosvolt authored Sep 17, 2023
1 parent ecd199d commit 7db38c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/map_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2140,13 +2140,16 @@ static void burned_ground_parser( map &m, const tripoint &loc )
while( m.is_bashable( loc ) ) { // one is not enough
m.destroy( loc, true );
}
if( one_in( 5 ) && !tr.has_flag( flag_LIQUID ) ) {
m.spawn_item( loc, itype_ash, 1, rng( 1, 10 ) );
if( m.ter( loc ) == t_pit ) {
m.ter_set( loc, t_pit_shallow );
}
} else if( ter_furn_has_flag( tr, fid, TFLAG_FLAMMABLE_ASH ) ) {
while( m.is_bashable( loc ) ) {
m.destroy( loc, true );
}
if( m.ter( loc ) == t_pit ) {
m.ter_set( loc, t_pit_shallow );
}
m.furn_set( loc, f_ash );
}

Expand Down

0 comments on commit 7db38c2

Please sign in to comment.