give datamined its own set

This commit is contained in:
Daniel 2024-07-23 14:21:19 -04:00
parent baa0262df3
commit 77e9b82d65
2 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export function LocationIcon(props) {
export function RarityIcon(props) {
const { set, rarity, size } = props;
return (<>{set !== 'PE1' &&
return (<>{!["PE1", "DATA", "PROTO"].includes(set) &&
<img className={size || "icon16"} style={{ verticalAlign: 'middle' }} src={("/public/img/icons/set/" + set + "/" + rarity + ".png").toLowerCase()} />
}</>);
}

View File

@ -1,5 +1,6 @@
import 'whatwg-fetch';
import { observable } from "mobx";
import CollectionDB from './CollectionDB';
import spreadsheet_data from './meta_spreadsheet.json';
import { Card } from '../common/definitions';
@ -35,6 +36,7 @@ export const sets = {
"BR": "Beyond Rare",
"LR": "League Rewards",
"PROMO": "Promotional",
"DATA": "Datamined",
"PROTO": "Prototype"
};