Scenario format tweaks

- Fix monster attitude enumerator not being reflected in schemas
- Store the sound ID for sound names, instead of the index into the sound name array
This commit is contained in:
2015-07-09 20:32:45 -04:00
parent 07323b393a
commit 5458bc0d7b
5 changed files with 29 additions and 4 deletions

View File

@@ -37,6 +37,14 @@
<xs:enumeration value="skeletal"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="monsterAttitude">
<xs:restriction base="xs:token">
<xs:enumeration value="docile"/>
<xs:enumeration value="friendly"/>
<xs:enumeration value="hostile-a"/>
<xs:enumeration value="hostile-b"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="permille">
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="1"/>
@@ -346,7 +354,7 @@
<xs:element name="onsight" minOccurs="0" type="xs:integer"/>
<xs:element name="voice" minOccurs="0" type="xs:integer"/>
<xs:element name="summon" minOccurs="0" type="xs:integer"/>
<xs:element name="attitude" type="xs:integer"/>
<xs:element name="attitude" type="monsterAttitude"/>
<xs:element name="immunity">
<xs:complexType>
<xs:all>