changeset 76:39a0ac8d7326

Re #82 - Add cost multiplier to UnitEquipmentItem * Add cost multiplier and rounding direction attributes to XSD
author IBBoard <dev@ibboard.co.uk>
date Sun, 17 May 2009 19:08:03 +0000
parents 1091082c27eb
children 338f13395e64
files dtds/race.xsd
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dtds/race.xsd	Tue May 12 18:44:35 2009 +0000
+++ b/dtds/race.xsd	Sun May 17 19:08:03 2009 +0000
@@ -38,6 +38,8 @@
 														<xs:attribute name="minPercentage" type="core:percentage" default="100"/>
 														<xs:attribute name="maxPercentage" type="core:percentage" default="100"/>
 														<xs:attribute name="roundDirection" type="updowntype" default="up"/>
+														<xs:attribute name="costMultiplier" type="core:nonNegativeDouble" default="1"/>
+														<xs:attribute name="costRounding" type="costroundingtype" default="banker-half"/>
 													</xs:complexType>
 												</xs:element>
 											</xs:sequence>
@@ -159,6 +161,16 @@
 		<xs:enumeration value="down"/>
 	</xs:restriction>
 </xs:simpleType>
+<xs:simpleType name="updowntype">
+	<xs:restriction base="xs:string">
+		<xs:enumeration value="up"/>
+		<xs:enumeration value="down"/>
+		<xs:enumeration value="banker"/>
+		<xs:enumeration value="up-half"/>
+		<xs:enumeration value="down-half"/>
+		<xs:enumeration value="banker-half"/>
+	</xs:restriction>
+</xs:simpleType>
 <xs:simpleType name="armourtype">
 	<xs:restriction base="xs:string">
 		<xs:enumeration value="None"/>