- 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.
38 lines
948 B
JSON
38 lines
948 B
JSON
{
|
|
"id": "a1-020-victreebel",
|
|
"name": "Victreebel",
|
|
"card_type": "pokemon",
|
|
"hp": 140,
|
|
"pokemon_type": "grass",
|
|
"stage": "stage_2",
|
|
"variant": "normal",
|
|
"retreat_cost": 2,
|
|
"set_id": "a1",
|
|
"rarity": "rare",
|
|
"evolves_from": "Weepinbell",
|
|
"attacks": [
|
|
{
|
|
"name": "Vine Whip",
|
|
"cost": [
|
|
"grass",
|
|
"colorless"
|
|
],
|
|
"damage": 60,
|
|
"damage_display": "60"
|
|
}
|
|
],
|
|
"abilities": [
|
|
{
|
|
"name": "Fragrance Trap",
|
|
"effect_id": "unimplemented",
|
|
"effect_description": "If this Pok\u00e9mon is in the Active Spot, once during your turn, you may switch in 1 of your opponent\u2019s Benched Basic Pok\u00e9mon to the Active Spot."
|
|
}
|
|
],
|
|
"weakness": {
|
|
"energy_type": "fire",
|
|
"value": 20
|
|
},
|
|
"illustrator": "Sumiyoshi Kizuki",
|
|
"image_path": "pokemon/a1/020-victreebel.webp",
|
|
"image_url": "https://cdn.mantimon.com/cards/pokemon/a1/020-victreebel.webp"
|
|
} |