melvin wrote:1. List exactly one keyword ability per rule. I noticed that some of the cards lists multiple keyword abilities in a single rule eg "Flying, haste", this requires the user to further parse the text to split them.
This is a good idea and it should be done. I still would like to be able to be able to map one-to-one with actual cards, or possibly have a way to convert back. I have two ideas for this so far, not sure I like either though.
- Code: Select all
<rulelist>
<rule number="1">Flying</rule>
<rule number="1">Trample</rule>
<rule number="2">5: Each player sacrifices a creature.</rule>
</rulelist>
<rulelist>
<rule>Flying, trample
<rule>Flying</rule>
<rule>Trample</rule>
</rule>
<rule>5: Each player sacrifices a creature.</rule>
</rulelist>
Protection will/should be split with this as well. "Protection from red and white." -> "Protection from red." & "Protection from white."
melvin wrote:2. Separate tag for type and subtype, currently both are tagged as type. Easiest would be to add a subtype tag
Will probably do something like this:
- Code: Select all
<typelist>
<type type="super">Legendary</type>
<type>Creature</type>
<type type="sub">Bunny</type>
<type type="sub">Ogre</type>
</typelist>