- 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.
30 lines
543 B
JSON
30 lines
543 B
JSON
{
|
|
"id": "a1-034-charmeleon",
|
|
"name": "Charmeleon",
|
|
"card_type": "pokemon",
|
|
"hp": 90,
|
|
"pokemon_type": "fire",
|
|
"stage": "stage_1",
|
|
"variant": "normal",
|
|
"retreat_cost": 2,
|
|
"set_id": "a1",
|
|
"rarity": "uncommon",
|
|
"evolves_from": "Charmander",
|
|
"attacks": [
|
|
{
|
|
"name": "Fire Claws",
|
|
"cost": [
|
|
"fire",
|
|
"colorless",
|
|
"colorless"
|
|
],
|
|
"damage": 60,
|
|
"damage_display": "60"
|
|
}
|
|
],
|
|
"weakness": {
|
|
"energy_type": "water",
|
|
"value": 20
|
|
},
|
|
"illustrator": "kantaro"
|
|
} |