- 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.
39 lines
1.0 KiB
JSON
39 lines
1.0 KiB
JSON
{
|
||
"id": "a1a-050-weezing",
|
||
"name": "Weezing",
|
||
"set_code": "a1a",
|
||
"set_name": "Mythical Island",
|
||
"card_number": 50,
|
||
"rarity": "Uncommon",
|
||
"card_type": "pokemon",
|
||
"image_url": "https://assets.pokemon-zone.com/game-assets/CardPreviews/cPK_10_002630_00_MATADOGAS_U.webp",
|
||
"image_file": null,
|
||
"source_url": "https://www.pokemon-zone.com/cards/a1a/50/weezing/",
|
||
"hp": 110,
|
||
"pokemon_type": "darkness",
|
||
"stage": "stage_1",
|
||
"evolves_from": "Koffing",
|
||
"is_ex": false,
|
||
"abilities": [],
|
||
"attacks": [
|
||
{
|
||
"name": "Smokescreen",
|
||
"cost": [
|
||
"darkness",
|
||
"darkness"
|
||
],
|
||
"damage": 50,
|
||
"damage_modifier": null,
|
||
"effect_text": "During your opponent’s next turn, if the Defending Pokémon tries to use an attack, your opponent flips a coin. If tails, that attack doesn’t happen.",
|
||
"effect_id": null
|
||
}
|
||
],
|
||
"weakness": {
|
||
"type": "fighting",
|
||
"value": 20
|
||
},
|
||
"resistance": null,
|
||
"retreat_cost": 3,
|
||
"flavor_text": null,
|
||
"illustrator": "Mousho"
|
||
} |