It was changed...
lackattack wrote: Collections / X of Y Bonus
Instead of introcuing a new <collections> tag how about adding a "required" (or "quantity"?) tag to <continent>, like this:
This will require a bit more XML but is more flexible and similar to what we already have. Comments?Code: Select all
<continent> <name>Any 4 Kings</name> <bonus>5</bonus> <components> <component>Red King</component> <component>Green King</component> <component>Blue King</component> <component>Purple King</component> <component>Yellow King</component> </components> <required>4</required> </continent>
Overruling continent bonus
Instead of a <bestof> tag how about a set of <overrule>s, like this:Code: Select all
<continent> <name>Any 4 Kings</name> <bonus>5</bonus> <components> <component>Red King</component> <component>Green King</component> <component>Blue King</component> <component>Purple King</component> <component>Yellow King</component> </components> <required>4</required> <overrules> <overrule>Any 2 Kings</overrule> <overrule>Any 3 Kings</overrule> </overrules> </continent>
SO... what you need is the following...
Code: Select all
<continent>
<name>Vals</name>
<bonus>5</bonus>
<components>
<component>V1</component>
<component>V2</component>
<component>V3</component>
<component>V4</component>
<component>V5</component>
</components>
<overrules>
<overrule>2 Vals</overrule>
<overrule>4 Vals</overrule>
</overrules>
</continent>
<continent>
<name>4 Vals</name>
<bonus>4</bonus>
<components>
<component>V1</component>
<component>V2</component>
<component>V3</component>
<component>V4</component>
<component>V5</component>
</components>
<required>4</required>
<overrules>
<overrule>2 Vals</overrule>
</overrules>
</continent>
<continent>
<name>2 Vals</name>
<bonus>3</bonus>
<components>
<component>V1</component>
<component>V2</component>
<component>V3</component>
<component>V4</component>
<component>V5</component>
</components>
<required>2</required>
</continent>
C.
PS Indentation makes code a lot easier to read...















