Skip to content

Commit

Permalink
added warning over using bad weapon in firemission
Browse files Browse the repository at this point in the history
  • Loading branch information
mullenpaul committed Nov 5, 2023
1 parent f2cdc14 commit 0f53dd8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tgui/packages/tgui/interfaces/MfdPanels/FiremissionPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ const FMOffsetStack = (
{x}
</Stack.Item>
))}

{editFm === true &&
offsets &&
offsets.map((x, i) => {
Expand All @@ -478,6 +479,15 @@ const FMOffsetStack = (
</Stack.Item>
);
}
if (props.equipment.firemission_delay === 0) {
return (
<Stack.Item key={i}>
<Box className="FiremissionBadStep">
Ammo unusable for firemissions
</Box>
</Stack.Item>
);
}
return (
<Stack.Item key={i}>
<Stack>
Expand Down

0 comments on commit 0f53dd8

Please sign in to comment.