- 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.
34 lines
787 B
JSON
34 lines
787 B
JSON
{
|
|
"id": "a1-078-gyarados",
|
|
"name": "Gyarados",
|
|
"card_type": "pokemon",
|
|
"hp": 150,
|
|
"pokemon_type": "water",
|
|
"stage": "stage_1",
|
|
"variant": "normal",
|
|
"retreat_cost": 4,
|
|
"set_id": "a1",
|
|
"rarity": "rare",
|
|
"evolves_from": "Magikarp",
|
|
"attacks": [
|
|
{
|
|
"name": "Hyper Beam",
|
|
"cost": [
|
|
"water",
|
|
"water",
|
|
"water",
|
|
"water"
|
|
],
|
|
"damage": 100,
|
|
"damage_display": "100",
|
|
"effect_description": "Discard a random Energy from your opponent\u2019s Active Pok\u00e9mon."
|
|
}
|
|
],
|
|
"weakness": {
|
|
"energy_type": "lightning",
|
|
"value": 20
|
|
},
|
|
"illustrator": "Mitsuhiro Arita",
|
|
"image_path": "pokemon/a1/078-gyarados.webp",
|
|
"image_url": "https://cdn.mantimon.com/cards/pokemon/a1/078-gyarados.webp"
|
|
} |