Skip to content

Commit

Permalink
Fix fireweapons
Browse files Browse the repository at this point in the history
Doesn't attempt to consume a charge if the fireweapon has reverted.
  • Loading branch information
KheirFerrum committed Jan 3, 2025
1 parent c75fb01 commit ae8bf45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/iuse_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2273,6 +2273,7 @@ int fireweapon_on_actor::use( player &p, item &it, bool t, const tripoint & ) co
if( extinguish ) {
it.revert( &p, false );
it.deactivate();
return 0;

} else if( one_in( noise_chance ) ) {
if( noise > 0 ) {
Expand Down

0 comments on commit ae8bf45

Please sign in to comment.