add message for bootleg ic cards

This commit is contained in:
ppc
2025-01-15 00:19:03 +00:00
parent 73d333cc23
commit 16c0ff54c6
2 changed files with 8 additions and 1 deletions
+3 -1
View File
@@ -54,7 +54,9 @@ function PhysicalICInfo(props: { physicalCard: AMPhysicalCardData | null }) {
return (
<AMUICardDetail>
<Joystick size={18} color="gray"/>
<Text style={{color: "gray"}}>{ICVendorName(props.physicalCard.cardVendor)}</Text>
<Text style={{color: "gray"}}>
{props.physicalCard.isBootlegAmusementCard ? "Bootleg " : null}{ICVendorName(props.physicalCard.cardVendor)}
</Text>
</AMUICardDetail>
);
}
+5
View File
@@ -63,6 +63,11 @@ export class AMPhysicalCardData extends Realm.Object<AMPhysicalCardData> {
cardType: ICType;
cardVendor: AmusementICVendor | null;
get isBootlegAmusementCard() {
// real cards have an IDm manufacturer code of 012E (first two bytes of the IDm or in this case, the first 4 characters)
return this.cardType === ICType.Amusement && !this.cardIDm.startsWith("012E");
}
static schema: Realm.ObjectSchema = {
name: "physicalCard",
primaryKey: "cardIDm",