Thread:Sylvandyr/@comment-5619126-20121014124324/@comment-4830404-20121024190021

If you add the dragon colors to your database, you don't have to implement full breeding rules for that section yet. You could take a shortcut by comparing the dragon colors of the submitted offspring vs. the combined colors of the parents.

If both colors of the offspring are represented in the combined parent colors, for most dragons this means the offspring is valid.

You would have a special case for pure purple dragons like Magic (parents must contribute Red + Blue if the color pool has more than one color, Red + Blue OR Diamond + Purple if the color pool is exactly 2 colors, Purple OR Diamond if there is only one color in the combined pool).

Also Diamond would have a special case (parents must have Diamond color only if there is one color in the combined pool, or combined pool must be >= 4 colors long.)