changeset 39:5669f2ef6444

Re #152: Test and fix extensibility of current schemas * Update to newer racex file for testing that matches our sequence-ordered schema
author IBBoard <dev@ibboard.co.uk>
date Sun, 28 Feb 2010 21:10:41 +0000
parents feb77f3287ca
children 7002a9cb0ed6
files testdata/extended-data.racex
diffstat 1 files changed, 162 insertions(+), 88 deletions(-) [+]
line diff
     1.1 --- a/testdata/extended-data.racex	Sat Feb 27 15:03:51 2010 +0000
     1.2 +++ b/testdata/extended-data.racex	Sun Feb 28 21:10:41 2010 +0000
     1.3 @@ -1,88 +1,162 @@
     1.4 -<?xml version="1.0" encoding="UTF-8"?>
     1.5 -<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:ext="http://ibboard.co.uk/warfoundry/attrib" id="EmpireAlt" name="Empire (Extended)" system="test" ext:extraAttrib="en">
     1.6 -	<units>
     1.7 -		<unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1">
     1.8 -			<stats>
     1.9 -				<stat name="m">4</stat>
    1.10 -				<stat name="WS">6</stat>
    1.11 -				<stat name="BS">6</stat>
    1.12 -				<stat name="S">4</stat>
    1.13 -				<stat name="T">4</stat>
    1.14 -				<stat name="W">3</stat>
    1.15 -				<stat name="I">6</stat>
    1.16 -				<stat name="A">4</stat>
    1.17 -				<stat name="Ld">9</stat>
    1.18 -			</stats>
    1.19 -			<unitEquipment>
    1.20 -				<unitEquipmentItem id="equip1" required="true" />
    1.21 -			</unitEquipment>
    1.22 -		</unit>
    1.23 -		<unit id="Empire2" typeName="Swordsmen" cat="cat2" points="10">
    1.24 -			<stats>
    1.25 -				<stat name="M">4</stat>
    1.26 -				<stat name="WS">3</stat>
    1.27 -				<stat name="BS">3</stat>
    1.28 -				<stat name="S">4</stat>
    1.29 -				<stat name="T">3</stat>
    1.30 -				<stat name="W">1</stat>
    1.31 -				<stat name="I">4</stat>
    1.32 -				<stat name="A">1</stat>
    1.33 -				<stat name="Ld">7</stat>
    1.34 -			</stats>
    1.35 -			<unitEquipment>
    1.36 -				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
    1.37 -				<unitEquipmentItem id="equip2"/>
    1.38 -				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
    1.39 -			</unitEquipment>
    1.40 -			<contains>
    1.41 -				<containedUnit containedID="Empire3" />
    1.42 -			</contains>
    1.43 -		</unit>
    1.44 -		<unit id="Empire3" typeName="Swordsmen Champion" cat="cat2" points="35">
    1.45 -			<stats>
    1.46 -				<stat name="M">4</stat>
    1.47 -				<stat name="WS">4</stat>
    1.48 -				<stat name="BS">3</stat>
    1.49 -				<stat name="S">4</stat>
    1.50 -				<stat name="T">3</stat>
    1.51 -				<stat name="W">1</stat>
    1.52 -				<stat name="I">4</stat>
    1.53 -				<stat name="A">2</stat>
    1.54 -				<stat name="Ld">7</stat>
    1.55 -			</stats>
    1.56 -			<unitEquipment>
    1.57 -				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
    1.58 -				<unitEquipmentItem id="equip2"/>
    1.59 -				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
    1.60 -			</unitEquipment>
    1.61 -		</unit>
    1.62 -		<unit id="Empire4" typeName="Gunnery Specialists" cat="cat2" points="15">
    1.63 -			<stats>
    1.64 -				<stat name="M">4</stat>
    1.65 -				<stat name="WS">3</stat>
    1.66 -				<stat name="BS">4</stat>
    1.67 -				<stat name="S">4</stat>
    1.68 -				<stat name="T">3</stat>
    1.69 -				<stat name="W">1</stat>
    1.70 -				<stat name="I">4</stat>
    1.71 -				<stat name="A">1</stat>
    1.72 -				<stat name="Ld">7</stat>
    1.73 -			</stats>
    1.74 -			<unitEquipment>
    1.75 -				<unitEquipmentItem id="equip4" required="true" exclusivityGroup="group1" minPercentage="50" maxPercentage="100" />
    1.76 -				<unitEquipmentItem id="equip1" required="true" />
    1.77 -				<unitEquipmentItem id="equip5" minNum="0" maxNum="5" />
    1.78 -			</unitEquipment>
    1.79 -			<contains>
    1.80 -				<containedUnit containedID="Empire3" />
    1.81 -			</contains>
    1.82 -		</unit>
    1.83 -	</units>
    1.84 -	<equipment>
    1.85 -		<equipmentItem id="equip1" name="sword" cost="1"/>
    1.86 -		<equipmentItem id="equip2" name="shield" cost="1"/>
    1.87 -		<equipmentItem id="equip3" name="broadsword" cost="2" />
    1.88 -		<equipmentItem id="equip4" name="Standard Guns" cost="3" />
    1.89 -		<equipmentItem id="equip5" name="Special Guns" cost="5" />
    1.90 -	</equipment>
    1.91 -</race>
    1.92 +<?xml version="1.0" encoding="UTF-8"?>
    1.93 +<race xmlns="http://ibboard.co.uk/warfoundry/race" xmlns:core="http://ibboard.co.uk/warfoundry/core" id="EmpireAlt" name="Empire (Extended)" system="test" lang="en">
    1.94 +	<units>
    1.95 +		<unit id="Empire1" typeName="Empire General" cat="cat1" points="100" maxNum="1" maxSize="1">
    1.96 +			<stats>
    1.97 +				<stat name="M">4</stat>
    1.98 +				<stat name="WS">6</stat>
    1.99 +				<stat name="BS">6</stat>
   1.100 +				<stat name="S">4</stat>
   1.101 +				<stat name="T">4</stat>
   1.102 +				<stat name="W">3</stat>
   1.103 +				<stat name="I">6</stat>
   1.104 +				<stat name="A">4</stat>
   1.105 +				<stat name="Ld">9</stat>
   1.106 +			</stats>
   1.107 +			<unitEquipment>
   1.108 +				<unitEquipmentItem id="equip1" required="true" />
   1.109 +			</unitEquipment>
   1.110 +		</unit>
   1.111 +		<unit id="Empire2" typeName="Swordsmen" cat="cat2" points="10">
   1.112 +			<stats>
   1.113 +				<stat name="M">4</stat>
   1.114 +				<stat name="WS">3</stat>
   1.115 +				<stat name="BS">3</stat>
   1.116 +				<stat name="S">4</stat>
   1.117 +				<stat name="T">3</stat>
   1.118 +				<stat name="W">1</stat>
   1.119 +				<stat name="I">4</stat>
   1.120 +				<stat name="A">1</stat>
   1.121 +				<stat name="Ld">7</stat>
   1.122 +			</stats>
   1.123 +			<unitEquipment>
   1.124 +				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
   1.125 +				<unitEquipmentItem id="equip2"/>
   1.126 +				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
   1.127 +			</unitEquipment>
   1.128 +			<contains>
   1.129 +				<containedUnit containedID="Empire3" />
   1.130 +			</contains>
   1.131 +		</unit>
   1.132 +		<unit id="Empire3" typeName="Swordsmen Champion" cat="cat2" points="35" minSize="1" maxSize="1">
   1.133 +			<stats>
   1.134 +				<stat name="M">4</stat>
   1.135 +				<stat name="WS">4</stat>
   1.136 +				<stat name="BS">3</stat>
   1.137 +				<stat name="S">4</stat>
   1.138 +				<stat name="T">3</stat>
   1.139 +				<stat name="W">1</stat>
   1.140 +				<stat name="I">4</stat>
   1.141 +				<stat name="A">2</stat>
   1.142 +				<stat name="Ld">7</stat>
   1.143 +			</stats>
   1.144 +			<unitEquipment>
   1.145 +				<unitEquipmentItem id="equip1" required="true" exclusivityGroup="group1" />
   1.146 +				<unitEquipmentItem id="equip2"/>
   1.147 +				<unitEquipmentItem id="equip3" required="true" exclusivityGroup="group1" />
   1.148 +			</unitEquipment>
   1.149 +			<notes>Champions shouldn't be taken on their own, but we don't stop this yet. DON'T DO IT!</notes>
   1.150 +		</unit>
   1.151 +		<unit id="Empire4" typeName="Gunnery Specialists" cat="cat2" points="15">
   1.152 +			<stats>
   1.153 +				<stat name="M">4</stat>
   1.154 +				<stat name="WS">3</stat>
   1.155 +				<stat name="BS">4</stat>
   1.156 +				<stat name="S">4</stat>
   1.157 +				<stat name="T">3</stat>
   1.158 +				<stat name="W">1</stat>
   1.159 +				<stat name="I">4</stat>
   1.160 +				<stat name="A">1</stat>
   1.161 +				<stat name="Ld">7</stat>
   1.162 +			</stats>
   1.163 +			<unitEquipment>
   1.164 +				<unitEquipmentItem id="equip4" required="true" exclusivityGroup="group1">
   1.165 +					<minLimit>
   1.166 +						<core:percentageLimit limit="50" />
   1.167 +					</minLimit>
   1.168 +					<maxLimit>
   1.169 +						<core:percentageLimit limit="100" />
   1.170 +					</maxLimit>
   1.171 +				</unitEquipmentItem>
   1.172 +				<unitEquipmentItem id="equip1" required="true" />
   1.173 +				<unitEquipmentItem id="equip5">
   1.174 +					<minLimit>
   1.175 +						<core:sizeConstrainedLimit limit="0" />
   1.176 +					</minLimit>
   1.177 +					<maxLimit>
   1.178 +						<core:sizeConstrainedLimit limit="5" />
   1.179 +					</maxLimit>
   1.180 +				</unitEquipmentItem>
   1.181 +			</unitEquipment>
   1.182 +			<unitAbilities>
   1.183 +				<unitAbility abilityID="goodShot"/>
   1.184 +			</unitAbilities>
   1.185 +			<contains>
   1.186 +				<containedUnit containedID="Empire3" />
   1.187 +			</contains>
   1.188 +		</unit>
   1.189 +		<unit id="Empire5" typeName="Gunnery Heavies" cat="cat2" points="13">
   1.190 +			<stats>
   1.191 +				<stat name="M">4</stat>
   1.192 +				<stat name="WS">3</stat>
   1.193 +				<stat name="BS">4</stat>
   1.194 +				<stat name="S">4</stat>
   1.195 +				<stat name="T">3</stat>
   1.196 +				<stat name="W">1</stat>
   1.197 +				<stat name="I">4</stat>
   1.198 +				<stat name="A">1</stat>
   1.199 +				<stat name="Ld">7</stat>
   1.200 +			</stats>
   1.201 +			<equipmentSlots>
   1.202 +				<equipmentSlot name="heavyWeapons">
   1.203 +					<maxLimit>
   1.204 +						<core:sizeConstrainedLimit limit="5" />
   1.205 +					</maxLimit>
   1.206 +				</equipmentSlot>
   1.207 +			</equipmentSlots>
   1.208 +			<unitEquipment>
   1.209 +				<unitEquipmentItem id="equip4" required="true" />
   1.210 +				<unitEquipmentItem id="equip6" equipmentSlot="heavyWeapons">
   1.211 +					<minLimit>
   1.212 +						<core:sizeConstrainedLimit limit="0" />
   1.213 +					</minLimit>
   1.214 +					<maxLimit>
   1.215 +						<core:sizeConstrainedLimit limit="3" />
   1.216 +					</maxLimit>
   1.217 +				</unitEquipmentItem>
   1.218 +				<unitEquipmentItem id="equip7" equipmentSlot="heavyWeapons">
   1.219 +					<minLimit>
   1.220 +						<core:sizeConstrainedLimit limit="0" />
   1.221 +					</minLimit>
   1.222 +					<maxLimit>
   1.223 +						<core:sizeConstrainedLimit limit="3" />
   1.224 +					</maxLimit>
   1.225 +				</unitEquipmentItem>
   1.226 +				<unitEquipmentItem id="equip8" equipmentSlot="heavyWeapons">
   1.227 +					<minLimit>
   1.228 +						<core:sizeConstrainedLimit limit="0" />
   1.229 +					</minLimit>
   1.230 +					<maxLimit>
   1.231 +						<core:sizeConstrainedLimit limit="3" />
   1.232 +					</maxLimit>
   1.233 +				</unitEquipmentItem>
   1.234 +			</unitEquipment>
   1.235 +			<contains>
   1.236 +				<containedUnit containedID="Empire3" />
   1.237 +			</contains>
   1.238 +		</unit>
   1.239 +	</units>
   1.240 +	<equipment>
   1.241 +		<equipmentItem id="equip1" name="sword" cost="1"/>
   1.242 +		<equipmentItem id="equip2" name="shield" cost="1"/>
   1.243 +		<equipmentItem id="equip3" name="broadsword" cost="2" />
   1.244 +		<equipmentItem id="equip4" name="Standard Guns" cost="3" />
   1.245 +		<equipmentItem id="equip5" name="Special Guns" cost="5" />
   1.246 +		<equipmentItem id="equip6" name="Long Gun" cost="4" />
   1.247 +		<equipmentItem id="equip7" name="Big Gun" cost="8" />
   1.248 +		<equipmentItem id="equip8" name="Quick Gun" cost="6" />
   1.249 +	</equipment>
   1.250 +	<abilities>
   1.251 +		<ability id="goodShot" name="Good Shot"><description>The unit is a 'Good Shot' and can add +1 to any to hit roll with missile weapons.</description></ability>
   1.252 +	</abilities>
   1.253 +</race>
   1.254 \ No newline at end of file