{
 "format": "deckcraft-game/1",
 "name": "Ascension (gap probe)",
 "meta": {
  "game_briefing": {
   "game_name": "Ascension (gap probe)",
   "game_pitch": "Center-row deckbuilder with dual currencies and a shared honor pool.",
   "game_mechanic": "deckbuild",
   "player_count_min": 2,
   "player_count_max": 2
  },
  "trackers": [
   {
    "id": "runes",
    "label": "Runes",
    "type": "counter",
    "role": "resource",
    "scope": "per_player",
    "visibility": "public",
    "starts_at": 0,
    "min": 0,
    "max": null,
    "regenerates": "per_turn_reset_to_zero"
   },
   {
    "id": "power",
    "label": "Power",
    "type": "counter",
    "role": "resource",
    "scope": "per_player",
    "visibility": "public",
    "starts_at": 0,
    "min": 0,
    "max": null,
    "regenerates": "per_turn_reset_to_zero"
   },
   {
    "id": "honor",
    "label": "Honor",
    "type": "counter",
    "role": "score",
    "scope": "per_player",
    "visibility": "public",
    "starts_at": 0,
    "min": 0,
    "max": null,
    "regenerates": null
   },
   {
    "id": "honor_pool",
    "label": "Honor Pool",
    "type": "counter",
    "role": "counter",
    "scope": "shared",
    "visibility": "public",
    "starts_at": 60,
    "min": 0,
    "max": null,
    "regenerates": null,
    "description": "GAP: honor gained by players should DRAIN this shared pool; no effect can touch a shared tracker."
   }
  ],
  "game_zones": [
   {
    "id": "draw_pile",
    "label": "Draw Pile",
    "scope": "per_player",
    "visibility": "hidden",
    "ordering": "stack",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "hand",
    "label": "Hand",
    "scope": "per_player",
    "visibility": "owner",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "in_play",
    "label": "In Play",
    "scope": "per_player",
    "visibility": "public",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "discard",
    "label": "Discard",
    "scope": "per_player",
    "visibility": "public",
    "ordering": "stack",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "center_deck",
    "label": "Center Deck",
    "scope": "shared",
    "visibility": "none",
    "ordering": "stack",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "center_row",
    "label": "Center Row",
    "scope": "shared",
    "visibility": "public",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": {
     "from": "center_deck",
     "to": 6,
     "trigger": "after_action",
     "when_empty": "stop_refill"
    },
    "reset": null,
    "setup": null
   },
   {
    "id": "mystic_pile",
    "label": "Mystic Pile",
    "scope": "shared",
    "visibility": "public",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "heavy_pile",
    "label": "Heavy Infantry Pile",
    "scope": "shared",
    "visibility": "public",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   },
   {
    "id": "void",
    "label": "The Void",
    "scope": "GAP: defeated monsters and banished cards should land here; nothing sends them",
    "visibility": "public",
    "ordering": "unordered",
    "constraints": {
     "accepts_types": [
      "*"
     ],
     "max_cards": null,
     "exclusive": false
    },
    "auto_refill": null,
    "reset": null,
    "setup": null
   }
  ],
  "phases": [
   {
    "id": "main",
    "label": "Main Phase",
    "kind": "player_driven",
    "scope": "per_player",
    "repeat": "until_player_ends",
    "allowed_actions": [
     "play_card",
     "buy_from_market",
     "end_phase"
    ],
    "mandatory_actions": [],
    "description": "GAP: defeating a monster is not buying - pay power, monster to the void, reward on defeat."
   },
   {
    "id": "cleanup",
    "label": "Cleanup",
    "kind": "automatic",
    "scope": "per_player",
    "repeat": "once",
    "allowed_actions": [],
    "mandatory_actions": [
     {
      "action": "discard_zone",
      "params": {
       "from_zone": "hand",
       "to_zone": "discard"
      }
     },
     {
      "action": "discard_zone",
      "params": {
       "from_zone": "in_play",
       "to_zone": "discard"
      }
     },
     {
      "action": "draw_n_cards",
      "params": {
       "n": 5,
       "from_zone": "draw_pile"
      }
     }
    ]
   }
  ],
  "actions": [
   "play_card",
   "buy_from_market",
   "end_phase"
  ],
  "enabled_mechanics": [
   "gain_resource",
   "draw_cards",
   "discard_cards"
  ],
  "card_types": {
   "unit": {
    "enabled": true
   },
   "structure": {
    "enabled": true
   }
  },
  "ending": {
   "ends_when": [
    {
     "label": "Honor pool exhausted",
     "when": {
      "<=": [
       {
        "var": "game.shared_trackers.honor_pool"
       },
       0
      ]
     },
     "scope": "any_player",
     "terminates_at": "end_of_round",
     "resolution": {
      "kind": "scored",
      "winner_rule": "highest_tracker",
      "tracker": "honor"
     },
     "_gap": "terminates_at end_of_round is unimplemented (would end mid-round); and the pool never drains, see tracker note."
    }
   ]
  },
  "setup_spec": {
   "turn_order": "clockwise",
   "first_player_rule": "random",
   "starting_hand_size": 5,
   "initial_tracker_overrides": {},
   "deck_to_zone_map": {
    "Pile: Mystic": "mystic_pile",
    "Pile: Heavy Infantry": "heavy_pile"
   }
  }
 },
 "decks": [
  {
   "name": "Starter Deck",
   "is_starter": 1,
   "soft": 10,
   "hard": 10,
   "cards": [
    {
     "name": "Apprentice",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "1 rune.",
     "cost": {},
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "runes"
       }
      }
     ],
     "copies": 8
    },
    {
     "name": "Militia",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "1 power.",
     "cost": {},
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "power"
       }
      }
     ],
     "copies": 2
    }
   ]
  },
  {
   "name": "Center Deck",
   "is_starter": 0,
   "soft": 60,
   "hard": 60,
   "cards": [
    {
     "name": "Arha Initiate",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "Draw a card.",
     "cost": {
      "runes": 1
     },
     "effects": [
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1
       }
      }
     ],
     "copies": 4
    },
    {
     "name": "Temple Librarian",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "Draw then discard.",
     "cost": {
      "runes": 2
     },
     "effects": [
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1
       }
      },
      {
       "effect_key": "discard_1_card_from_self",
       "trigger": "on_play",
       "parameters": {}
      }
     ],
     "copies": 3
    },
    {
     "name": "Seer of the Forked Path",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "1 honor, draw.",
     "cost": {
      "runes": 2
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      },
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Ogo the Clever",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "2 power, 1 honor.",
     "cost": {
      "runes": 3
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 2,
        "resource_type": "power"
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Wolf Shaman",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "2 runes.",
     "cost": {
      "runes": 3
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 2,
        "resource_type": "runes"
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Spike Vixen",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "1 power, draw.",
     "cost": {
      "runes": 3
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "power"
       }
      },
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Kor the Ferromancer",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "3 power, 1 honor.",
     "cost": {
      "runes": 4
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 3,
        "resource_type": "power"
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 2
    },
    {
     "name": "Oziah the Peerless",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "4 power, 3 honor.",
     "cost": {
      "runes": 6
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 4,
        "resource_type": "power"
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 3,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 2
    },
    {
     "name": "Ascetic of the Lidless Eye",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "Draw 2, 1 honor.",
     "cost": {
      "runes": 5
     },
     "effects": [
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 2
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 2
    },
    {
     "name": "Master Dhartha",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "Draw 3, 3 honor.",
     "cost": {
      "runes": 7
     },
     "effects": [
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 3
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 3,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 1
    },
    {
     "name": "Void Star",
     "type": "structure",
     "behaviours": [
      "Permanent",
      "Targetable"
     ],
     "families": [],
     "description": "1 power each turn.",
     "cost": {
      "runes": 4
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "at_start_of_turn",
       "parameters": {
        "amount": 1,
        "resource_type": "power"
       }
      }
     ],
     "copies": 2
    },
    {
     "name": "Yggdrasil Staff",
     "type": "structure",
     "behaviours": [
      "Permanent",
      "Targetable"
     ],
     "families": [],
     "description": "1 rune each turn.",
     "cost": {
      "runes": 4
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "at_start_of_turn",
       "parameters": {
        "amount": 1,
        "resource_type": "runes"
       }
      }
     ],
     "copies": 2
    },
    {
     "name": "The All-Seeing Eye",
     "type": "structure",
     "behaviours": [
      "Permanent",
      "Targetable"
     ],
     "families": [],
     "description": "Draw an extra card each turn.",
     "cost": {
      "runes": 6
     },
     "effects": [
      {
       "effect_key": "draw_n_cards_to_self",
       "trigger": "at_start_of_turn",
       "parameters": {
        "amount": 1
       }
      }
     ],
     "copies": 1
    },
    {
     "name": "Hedron Cannon",
     "type": "structure",
     "behaviours": [
      "Permanent",
      "Targetable"
     ],
     "families": [],
     "description": "2 power + 1 honor each turn.",
     "cost": {
      "runes": 8
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "at_start_of_turn",
       "parameters": {
        "amount": 2,
        "resource_type": "power"
       }
      },
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "at_start_of_turn",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 1
    },
    {
     "name": "Tiny Wolf",
     "type": "unit",
     "behaviours": [],
     "families": [],
     "description": "DEFEAT: 1 honor.",
     "cost": {
      "power": 2
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_defeat",
       "parameters": {
        "amount": 1,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 4
    },
    {
     "name": "Mephit",
     "type": "unit",
     "behaviours": [],
     "families": [],
     "description": "DEFEAT: draw. (typo probe)",
     "cost": {
      "power": 3
     },
     "effects": [
      {
       "effect_key": "gain_n_cards... typo_probe",
       "trigger": "on_defeat",
       "parameters": {
        "amount": 1
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Corrosive Widow",
     "type": "unit",
     "behaviours": [],
     "families": [],
     "description": "DEFEAT: 3 honor.",
     "cost": {
      "power": 4
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_defeat",
       "parameters": {
        "amount": 3,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 3
    },
    {
     "name": "Xeron, Duke of Lies",
     "type": "unit",
     "behaviours": [],
     "families": [],
     "description": "DEFEAT: 6 honor.",
     "cost": {
      "power": 6
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_defeat",
       "parameters": {
        "amount": 6,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 1
    },
    {
     "name": "Avatar of the Fallen",
     "type": "unit",
     "behaviours": [],
     "families": [],
     "description": "DEFEAT: 8 honor.",
     "cost": {
      "power": 7
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_defeat",
       "parameters": {
        "amount": 8,
        "resource_type": "honor"
       }
      }
     ],
     "copies": 1
    }
   ]
  },
  {
   "name": "Pile: Mystic",
   "is_starter": 0,
   "soft": 20,
   "hard": 20,
   "cards": [
    {
     "name": "Mystic",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "1 rune, always available.",
     "cost": {
      "runes": 3
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 1,
        "resource_type": "runes"
       }
      }
     ],
     "copies": 20
    }
   ]
  },
  {
   "name": "Pile: Heavy Infantry",
   "is_starter": 0,
   "soft": 20,
   "hard": 20,
   "cards": [
    {
     "name": "Heavy Infantry",
     "type": "unit",
     "behaviours": [
      "Strike"
     ],
     "families": [],
     "description": "2 power, always available.",
     "cost": {
      "runes": 2
     },
     "effects": [
      {
       "effect_key": "gain_n_resource_to_self",
       "trigger": "on_play",
       "parameters": {
        "amount": 2,
        "resource_type": "power"
       }
      }
     ],
     "copies": 20
    }
   ]
  }
 ]
}