{
  "titleId": "harrypotter-card",
  "titleName": "ハリー・ポッター カードゲーム",
  "version": "1.1.1",
  "recommendedAppVersion": "1.1.0",
  "fields": [
    {
      "id": "keyword",
      "label": "キーワード",
      "type": "text",
      "searchable": true,
      "virtual": true,
      "quickSearch": true,
      "searchTargets": [
        "name",
        "cardNo",
        "text",
        "tags"
      ]
    },
    {
      "id": "cardText",
      "label": "カードテキスト",
      "type": "text",
      "searchable": true,
      "virtual": true,
      "searchTargets": [
        "text"
      ]
    },
    {
      "id": "cardNo",
      "label": "カードNo",
      "type": "text",
      "searchable": true,
      "required": true
    },
    {
      "id": "name",
      "label": "カード名",
      "type": "text",
      "searchable": true,
      "required": true
    },
    {
      "id": "type",
      "label": "種類",
      "type": "radio",
      "searchable": true,
      "required": true,
      "multiple": false,
      "options": [
        "Partner",
        "Character",
        "Location",
        "Magic",
        "Event",
        "Item",
        "Character/Token"
      ],
      "dynamicOptions": true
    },
    {
      "id": "rarity",
      "label": "レアリティ",
      "type": "radio",
      "searchable": true,
      "multiple": false,
      "options": [
        "N",
        "R",
        "R★",
        "SR",
        "SR★",
        "SR★★",
        "UR",
        "ST",
        "Pt",
        "Pt★",
        "P"
      ],
      "dynamicOptions": true
    },
    {
      "id": "cost",
      "label": "コスト",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 10
    },
    {
      "id": "mp",
      "label": "MP",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 1
    },
    {
      "id": "ap",
      "label": "AP",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 10
    },
    {
      "id": "dp",
      "label": "DP",
      "type": "number_range",
      "searchable": true,
      "min": 0,
      "max": 10
    },
    {
      "id": "tags",
      "label": "タグ",
      "type": "modal_multi",
      "searchable": true,
      "multiple": true,
      "optionSort": "reading",
      "options": [
        "グリフィンドール",
        "スリザリン",
        "レイブンクロー",
        "ハッフルパフ",
        "クィディッチ",
        "ゴースト",
        "ダーズリー家",
        "トロール",
        "ホグワーツ",
        "マグル",
        "小鬼",
        "手紙",
        "教師",
        "肖像画",
        "蛇",
        "闇",
        "魔女",
        "魔法使い",
        "魔法生物",
        "魔法省"
      ],
      "dynamicOptions": true
    },
    {
      "id": "icons",
      "label": "アイコン",
      "type": "checkbox",
      "searchable": true,
      "multiple": true,
      "options": [
        "Magic",
        "Dark Magic"
      ],
      "dynamicOptions": true
    },
    {
      "id": "series",
      "label": "収録",
      "type": "modal_multi",
      "searchable": true,
      "multiple": true,
      "options": [
        "ブースターパック／『ハリー・ポッターと秘密の部屋』 Part.1",
        "ブースターパック／『ハリー・ポッターと賢者の石』 Part.2",
        "ブースターパック／『ハリー・ポッターと賢者の石』 Part.1",
        "スターターデッキ／スリザリン",
        "スターターデッキ／グリフィンドール",
        "プロモーションカード"
      ],
      "dynamicOptions": true
    },
    {
      "id": "text",
      "label": "テキスト",
      "type": "text",
      "searchable": false
    }
  ],
  "cardIdGeneration": {
    "type": "field",
    "fieldId": "cardNo"
  },
  "parallelCardSupport": {
    "enabled": true,
    "defaultShowParallel": false,
    "filterLabel": "パラレルカードを表示",
    "parallelLabel": "パラレル"
  },
  "deckRules": {
    "totalCards": {
      "min": 51,
      "max": 51
    },
    "maxCopiesPerCard": {
      "default": 4
    },
    "zones": [
      {
        "id": "partner",
        "label": "パートナー",
        "required": true,
        "cardCount": {
          "min": 1,
          "max": 1
        },
        "cardFilter": {
          "type": "Partner"
        }
      },
      {
        "id": "deck",
        "label": "デッキ",
        "required": true,
        "cardCount": {
          "min": 50,
          "max": 50
        },
        "cardFilter": {
          "type": [
            "Character",
            "Location",
            "Magic",
            "Event",
            "Item"
          ]
        }
      }
    ],
    "deckBuildFlow": {
      "steps": [
        {
          "type": "select_partner",
          "zoneId": "partner",
          "required": true
        }
      ]
    },
    "deckNameTemplate": "{name}",
    "deckNameFields": [
      "name"
    ],
    "listDisplayZone": "partner",
    "mainZone": "deck",
    "deckSort": {
      "groupBy": [
        "type"
      ],
      "options": [
        {
          "id": "cost",
          "label": "コスト順",
          "by": [
            "cost",
            "cardNo"
          ]
        },
        {
          "id": "cardNo",
          "label": "カードNo順",
          "by": [
            "cardNo"
          ]
        }
      ],
      "default": {
        "optionId": "cost",
        "direction": "asc"
      }
    },
    "deckStats": {
      "zones": [
        "deck"
      ],
      "items": [
        {
          "fieldId": "type",
          "chart": "stack"
        },
        {
          "fieldId": "cost",
          "chart": "columns"
        },
        {
          "fieldId": "tags",
          "chart": "rows",
          "limit": 5
        },
        {
          "fieldId": "icons",
          "chart": "stack",
          "missingLabel": "なし"
        }
      ]
    }
  },
  "migrations": [],
  "defaultSettings": {
    "deckImageSheet": {
      "width": 1920,
      "height": 2560,
      "background": "#1A2244",
      "columns": 8,
      "hero": {
        "zoneId": "partner",
        "colSpan": 3,
        "rowSpan": 2
      },
      "panel": {
        "groups": [
          {
            "label": "種類",
            "items": [
              {
                "label": "Character",
                "match": {
                  "type": "Character"
                }
              },
              {
                "label": "Location",
                "match": {
                  "type": "Location"
                }
              },
              {
                "label": "Magic",
                "match": {
                  "type": "Magic"
                }
              },
              {
                "label": "Event",
                "match": {
                  "type": "Event"
                }
              },
              {
                "label": "Item",
                "match": {
                  "type": "Item"
                }
              }
            ]
          }
        ]
      }
    },
    "theme": "auto",
    "language": "ja",
    "searchSort": [
      {
        "fieldId": "series",
        "order": "listed"
      },
      {
        "fieldId": "cardNo",
        "order": "asc"
      }
    ]
  },
  "matchRecord": {
    "opponent": {
      "label": "相手のパートナー",
      "cardFilter": {
        "type": "Partner"
      }
    }
  },
  "dataSources": [
    {
      "name": "全カード",
      "provider": "TCGrid",
      "url": "https://tcgrid.jp/api/v1/titles/harrypotter-card/data",
      "description": "全カードのデータ（MPカードを除く）"
    }
  ]
}
