Mercurial > repos > IBBoard.WarFoundry.API.Tests
comparison testdata/xml-race-factory/cyclic.racex @ 203:2b27447ae74e
Re #352: Test/fix cyclic references in unit types
* Add test case
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 21 Jan 2012 21:01:02 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
202:49e50238c380 | 203:2b27447ae74e |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:cats="http://ibboard.co.uk/warfoundry/cats" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="Empire" name="Empire" system="default"> | |
3 <categories> | |
4 <cats:cat id="cat1" name="Characters" minPercentage="0" maxPercentage="50" /> | |
5 <cats:cat id="cat2" name="Regiments" minPercentage="25" maxPercentage="100" /> | |
6 <cats:cat id="cat3" name="War Machines" minPercentage="0" maxPercentage="25" /> | |
7 <cats:cat id="cat4" name="Monsters" minPercentage="0" maxPercentage="25" /> | |
8 <cats:cat id="cat5" name="Allies" minPercentage="0" maxPercentage="25" /> | |
9 </categories> | |
10 <units> | |
11 <unit id="Empire1" typeName="Empire General" cat="cat1" points="100"> | |
12 <stats> | |
13 <stat name="M">4</stat> | |
14 <stat name="WS">6</stat> | |
15 <stat name="BS">6</stat> | |
16 <stat name="S">4</stat> | |
17 <stat name="T">4</stat> | |
18 <stat name="W">3</stat> | |
19 <stat name="I">6</stat> | |
20 <stat name="A">4</stat> | |
21 <stat name="Ld">9</stat> | |
22 </stats> | |
23 <requirements> | |
24 <!-- Unlimited generals, unless we have more than four minions --> | |
25 <requirement requirementName="RequiresNoMoreThanNUnits"> | |
26 <data>Empire2:4</data> | |
27 </requirement> | |
28 </requirements> | |
29 </unit> | |
30 <unit id="Empire2" typeName="Minion" cat="cat1" points="0"> | |
31 <stats> | |
32 <stat name="M">4</stat> | |
33 <stat name="WS">2</stat> | |
34 <stat name="BS">2</stat> | |
35 <stat name="S">2</stat> | |
36 <stat name="T">2</stat> | |
37 <stat name="W">1</stat> | |
38 <stat name="I">2</stat> | |
39 <stat name="A">1</stat> | |
40 <stat name="Ld">5</stat> | |
41 </stats> | |
42 <requirements> | |
43 <!-- Unlimited minions for one or more generals --> | |
44 <requirement requirementName="RequiresAtLeastNUnits"> | |
45 <data>Empire1</data> | |
46 </requirement> | |
47 </requirements> | |
48 </unit> | |
49 </units> | |
50 </race> |