pombreda / cardforge

Automatically exported from code.google.com/p/cardforge
1 stars 0 forks source link

Convert Pets to XML and card data object #115

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently all the Pets are hardcoded. It would be better if we created data 
files that held all of the Pet info. We could have one master XML (or other) 
file that would hold all of the Pet description

Such as:

<pet name="Wolf">
<data level="0" description="Purchase Wolf" stats="Not owned">
<data level="1" file="pet_wolf_1.txt" description="Improve Attack" stats="1/1">
</pet>

<pet name="Crocodile">
<data level="0" description="Purchase Crocodile" stats="Not owned">
<data level="1" file="pet_crocodile_1.txt" description="Improve Attack" 
stats="1/1">
</pet>

At level 0, the pet is unowned so a cardsfile is unnecessary. 

The txt file would look just how real cards are created.

Original issue reported on code.google.com by zenchristo on 6 Feb 2011 at 2:45

GoogleCodeExporter commented 9 years ago
Obviously price would go into the data too. Making everything much more 
tweakable.

Original comment by zenchristo on 6 Feb 2011 at 3:04

GoogleCodeExporter commented 9 years ago
I would vote for having a zipped file per pet that contains all the necessary 
data:
-The info xml file, as described above
-The card files
-The token images

That way it is self-contained and new ones can be traded amongst forum users 
easily. 
It would also encourage people to find images for the tokens, we are lacking 
these for the pets at the moment.

Original comment by evrkar...@gmail.com on 6 Feb 2011 at 5:46

GoogleCodeExporter commented 9 years ago
Issue 48 has been merged into this issue.

Original comment by zenchristo on 9 Feb 2011 at 3:52