mantimon-tcg/backend/data/definitions/pokemon/a1/056-blastoise-ex.json
Cal Corum 934aa4c443 Add CardService and card data conversion pipeline
- Rename data/cards/ to data/raw/ for scraped data
- Add data/definitions/ as authoritative card data source
- Add convert_cards.py script to transform raw -> definitions
- Generate 378 card definitions (344 Pokemon, 24 Trainers, 10 Energy)
- Add CardService for loading and querying card definitions
  - In-memory indexes for fast lookups by type, set, pokemon_type
  - search() with multiple filter criteria
  - get_all_cards() for GameEngine integration
- Add SetInfo model for set metadata
- Update Attack model with damage_display field for variable damage
- Update CardDefinition with image_path, illustrator, flavor_text
- Add 45 tests (21 converter + 24 CardService)
- Update scraper output path to data/raw/

Card data is JSON-authoritative (no database) to support offline fork goal.
2026-01-27 14:16:40 -06:00

45 lines
1.0 KiB
JSON

{
"id": "a1-056-blastoise-ex",
"name": "Blastoise ex",
"card_type": "pokemon",
"hp": 180,
"pokemon_type": "water",
"stage": "stage_2",
"variant": "ex",
"retreat_cost": 3,
"set_id": "a1",
"rarity": "double rare",
"evolves_from": "Wartortle",
"attacks": [
{
"name": "Surf",
"cost": [
"water",
"colorless"
],
"damage": 40,
"damage_display": "40"
},
{
"name": "Hydro Bazooka",
"cost": [
"water",
"water",
"colorless"
],
"damage": 100,
"damage_display": "100x",
"effect_description": "If this Pok\u00e9mon has at least 2 extraEnergy attached, this attack does 60 more damage.",
"effect_params": {
"damage_modifier": "x"
}
}
],
"weakness": {
"energy_type": "lightning",
"value": 20
},
"illustrator": "PLANETA Tsuji",
"image_path": "pokemon/a1/056-blastoise-ex.webp",
"image_url": "https://cdn.mantimon.com/cards/pokemon/a1/056-blastoise-ex.webp"
}