Skip to content

Commit

Permalink
Add warning for all drop sources being hidden
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Slusny <[email protected]>
  • Loading branch information
deathbeam committed Oct 31, 2023
1 parent c1a5c85 commit 38a5b1d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions site/src/views/CardsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ const CardList = ({ card, voidstones }) => {
<div className="card-body">{card.drop.text}</div>
</div>
)
} else if (
card.maps.length === 0 &&
card.monsters.length === 0 &&
(card.drop.text || card.drop.monsters.length > 0 || card.drop.areas.length) > 0
) {
cardNotice = (
<div className="card mb-2 bg-warning-subtle text-white">
<div className="card-body">
{card.name} has drop sources but they are hidden with filters, adjust <b>Map Display</b> or{' '}
<b>Atlas voidstones</b> to see them.
</div>
</div>
)
}

return (
Expand Down

0 comments on commit 38a5b1d

Please sign in to comment.