hearthstone-db
hearthstone-db copied to clipboard
Empty `effect_list` and a question about more detailed data
I've a couple questions.
I notice that many of the effect_list fields are empty. Is this a bug, WIP or something I'm missing?
It might be interesting to consider with a more structured format. For example instead of "Battlecry: Deal 1 damage to a random enemy." it becomes something like:
{
"type": "battlecry",
"action": {
"type": "damage",
"target": {
"class": "enemy",
"selection": "random"
},
value: 1
}
}
Doing this manually would be a lot of work. It could be semi-automated then manually corrected for the weird cards. I'm willing to help.
Having a data-structure like this would make simulations easier - the only current example I can think of is the Yogg-Saron Simulator which only applies spells and stores spells as javascript.
I originally wanted every card to have an effect_list array but after the first expansion I didn't want to put in the work. Mostly because I think that the way I did for the cards from the classic set is not very good.
Your idea seems to be much better. Maybe I will add something like this in a future release.