Skip to content

Commit

Permalink
feat: add flyover info
Browse files Browse the repository at this point in the history
  • Loading branch information
Compositr committed Jan 13, 2024
1 parent f473259 commit 5f8dcc6
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions components/sidebars/ObstacleSidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {
FlyoverPref,
ObstacleDefinition,
RotationMode,
} from "@/vendor/suroi/common/src/definitions/obstacles";
Expand Down Expand Up @@ -87,6 +88,12 @@ export default function ObstacleSidebar({
{RotationMode[item.rotationMode]}
</InfoboxColumn>
<InfoboxColumn title="Variations">{item.variations ?? 1}</InfoboxColumn>
<InfoboxColumn
title="Flyover"
abbr="Whether grenades can be thrown over the obstacle"
>
{FlyoverPref[item.allowFlyover ?? FlyoverPref.Sometimes]}
</InfoboxColumn>
</InfoboxRow>
<InfoboxRow>
{(item.hasLoot || item.spawnWithLoot) && (
Expand Down Expand Up @@ -137,11 +144,12 @@ export default function ObstacleSidebar({
{item.interactText}
</InfoboxColumn>
)}
{item.interactDelay && (
{/* TODO: Idk what happened here but blame hazinger */}
{/* {item.interactDelay && (
<InfoboxColumn title="Interaction Delay">
{item.interactDelay / 1000}s
</InfoboxColumn>
)}
)} */}
</InfoboxRow>
</>
)}
Expand Down

0 comments on commit 5f8dcc6

Please sign in to comment.