feature: Updated validation with description tag in monster and optional source tag in spell

- Fixed dice roll format of monster attacks in new sources
- Fixed monster ac format with mage armor
This commit is contained in:
Chris Jennewein
2020-01-23 12:24:38 -07:00
parent abb8b0fa11
commit 2ea454c343
13 changed files with 315 additions and 307 deletions

View File

@@ -218,7 +218,7 @@
<xs:simpleType name="attackType">
<xs:restriction base="xs:string">
<xs:pattern value="(.*[|]([ ]|[0-9]*)[|]([0-9]*(d[0-9]+)*([+-][0-9]+)*)*)*"/>
<xs:pattern value="(.*[|]([ ]|[+-]?[0-9]*)[|]([0-9]*(d[0-9]+)*([+-][0-9]+)*)*)*"/>
</xs:restriction>
</xs:simpleType>
@@ -286,6 +286,7 @@
<xs:element type="traitType" name="reaction"/>
<xs:element type="xs:string" name="spells"/>
<xs:element type="slotsType" name="slots"/>
<xs:element type="xs:string" name="description"/>
<xs:element type="xs:string" name="environment"/>
</xs:choice>
</xs:complexType>
@@ -305,6 +306,7 @@
<xs:element type="xs:string" name="components"/>
<xs:element type="xs:string" name="duration"/>
<xs:element type="xs:string" name="classes"/>
<xs:element type="xs:string" name="source" minOccurs="0"/>
<xs:element type="xs:string" name="text" maxOccurs="unbounded" minOccurs="0"/>
<xs:element type="roll" name="roll" maxOccurs="unbounded" minOccurs="0"/>
</xs:choice>