import { PieceModel , Card } from "@creature-chess/models" ; import { getStrategicTypes } from "./getStrategicTypes" ; import { getOwnedPieceTypes } from "./getOwnedTypes" ; export const isStrategicCard = ( { type } , allPieces ) => getStrategicTypes ( allPieces ) . includes ( type ) ; export const isStrategicPiece = ( { definition : { type } } , allPieces ) => { const strategicTypes = getStrategicTypes ( allPieces ) ; const pieceTypes = getOwnedPieceTypes ( allPieces ) ; return pieceTypes [ type ] === 1 || strategicTypes . includes ( type ) ; } ;