Skip to content

Commit

Permalink
fix: remove fuel randomness for charge based items
Browse files Browse the repository at this point in the history
this makes fire source calculation flaky.
  • Loading branch information
scarf005 committed Dec 25, 2023
1 parent 6119df0 commit eb9cf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8297,7 +8297,7 @@ float item::simulate_burn( fire_data &frd ) const
}

if( count_by_charges() ) {
int stack_burnt = rng( type->stack_size / 2, type->stack_size );
const int stack_burnt = type->stack_size;
time_added *= stack_burnt;
smoke_added *= stack_burnt;
burn_added *= stack_burnt;
Expand Down

0 comments on commit eb9cf15

Please sign in to comment.