{
  "schemaVersion": 20,
  "operationSchemaVersion": 4,
  "name": "場札の選択枚数",
  "version": 1,
  "metadata": {
    "description": "手札以外のボックスでトランプを2枚選ぶと実行可能。盤面上の選択が1枚以上なら表示。",
    "minPlayers": 1,
    "maxPlayers": 2,
    "genres": [
      "その他"
    ],
    "durationRange": "10-30"
  },
  "tabs": [
    {
      "id": "main",
      "name": "メイン",
      "type": "standard",
      "hidden": false
    }
  ],
  "background": {
    "size": "landscape",
    "color": "#ffffff",
    "grid": false
  },
  "items": [
    {
      "id": "deck",
      "kind": "card",
      "tab": "main",
      "name": "トランプ",
      "x": 20,
      "y": 40,
      "width": 100,
      "height": 140,
      "cards": [
        "heart-a",
        "spade-a"
      ],
      "cardDefs": [
        {
          "id": "heart-a",
          "name": "ハートA",
          "variables": {
            "suit": "ハート"
          }
        },
        {
          "id": "spade-a",
          "name": "スペードA",
          "variables": {
            "suit": "スペード"
          }
        }
      ],
      "variableDefs": [
        {
          "name": "suit",
          "type": "text"
        }
      ]
    },
    {
      "id": "box",
      "kind": "box",
      "tab": "main",
      "name": "場札",
      "boxType": "holder",
      "x": 60,
      "y": 45,
      "width": 300,
      "height": 200
    }
  ],
  "settings": {
    "handsEnabled": true,
    "actionButtons": [
      {
        "id": "go",
        "name": "確定",
        "phaseId": "start",
        "displayCommonCondition": {
          "kind": "comparison",
          "left": {
            "kind": "card-count",
            "cards": {
              "location": {
                "kind": "all"
              },
              "condition": {
                "kind": "selected-by-actor"
              }
            }
          },
          "operator": ">=",
          "right": {
            "kind": "fixed",
            "value": 1
          }
        },
        "activeCommonCondition": {
          "kind": "comparison",
          "left": {
            "kind": "card-count",
            "cards": {
              "location": {
                "kind": "box",
                "boxId": "box"
              },
              "condition": {
                "kind": "and",
                "conditions": [
                  {
                    "kind": "selected-by-actor"
                  },
                  {
                    "kind": "card-type",
                    "cardSetId": "deck"
                  }
                ]
              }
            }
          },
          "operator": "=",
          "right": {
            "kind": "fixed",
            "value": 2
          }
        },
        "actions": [
          {
            "id": "notice",
            "type": "message",
            "target": "actor",
            "amount": {
              "kind": "number",
              "value": 0
            },
            "message": "場札のトランプを2枚選択しました"
          }
        ]
      }
    ]
  }
}
