Skip to content

Commit

Permalink
fix ammo consumption logic
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenpaul committed Feb 26, 2024
1 parent d728744 commit 9cfd607
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ const OffsetDetailed = (
return <>error</>;
}
const ammoConsumption = weaponFm.offsets
.map((x) => (x === '-' ? props.equipment.burst : 0))
.map((x) => (x === '-' ? 0 : props.equipment.burst))
.reduce(
(accumulator, currentValue) => (accumulator ?? 0) + (currentValue ?? 0),
0
Expand Down

0 comments on commit 9cfd607

Please sign in to comment.