From 7eafea966d659dd02910d3e7cc0b8e95de2e1e3d Mon Sep 17 00:00:00 2001 From: Paul Mullen <101871009+mullenpaul@users.noreply.github.com> Date: Tue, 27 Feb 2024 16:47:55 +0000 Subject: [PATCH] Fix cas ammo consumption logic (#5824) # About the pull request Fix https://github.com/cmss13-devs/cmss13/issues/5578 # Explain why it's good for the game Bugs bad # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: fix: ammo consumption logic for cas tgui correctly counts /:cl: --- tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx b/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx index 365ac7d84cac..406d57cba028 100644 --- a/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx +++ b/tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx @@ -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