Skip to content

Commit

Permalink
Merge pull request #77149 from RenechCDDA/no_insta_fire
Browse files Browse the repository at this point in the history
No repeatedly lighting fires on same tile
  • Loading branch information
Maleclypse authored Oct 20, 2024
2 parents daf08f6 + 1e87a9c commit 91af1b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bionics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ bool Character::activate_bionic( bionic &bio, bool eff_only, bool *close_bionics
add_msg_if_player( m_info, _( "You can now run faster, assisted by joint servomotors." ) );
} else if( bio.id == bio_lighter ) {
const std::optional<tripoint> pnt = choose_adjacent( _( "Start a fire where?" ) );
if( pnt && here.is_flammable( *pnt ) ) {
if( pnt && here.is_flammable( *pnt ) && !here.get_field( *pnt, fd_fire ) ) {
add_msg_activate();
here.add_field( *pnt, fd_fire, 1 );
if( has_trait( trait_PYROMANIA ) ) {
Expand Down

0 comments on commit 91af1b1

Please sign in to comment.