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
pull/28/head
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

@ -1015,7 +1015,7 @@
<size>M</size>
<type>humanoid (human)</type>
<alignment>Lawful Neutral</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>40 (9d8)</hp>
<speed>walk 30 ft.</speed>
<str>10</str>
@ -1063,7 +1063,7 @@
<size>M</size>
<type>humanoid (human)</type>
<alignment>Chaotic Neutral</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>40 (9d8)</hp>
<speed>walk 30 ft.</speed>
<str>8</str>
@ -1119,7 +1119,7 @@
<size>M</size>
<type>humanoid (human)</type>
<alignment>Neutral Evil</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>27 (5d8+5)</hp>
<speed>walk 30 ft.</speed>
<str>10</str>

View File

@ -353,7 +353,7 @@
<size>S</size>
<type>humanoid (gnome)</type>
<alignment>Chaotic Neutral</alignment>
<ac>10, 13 (with mage armor)</ac>
<ac>10 (13 with mage armor)</ac>
<hp>7 (2d6)</hp>
<speed>walk 25 ft.</speed>
<str>6</str>

View File

@ -870,7 +870,7 @@
<size>M</size>
<type>humanoid (human)</type>
<alignment>Lawful Evil</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>40 (9d8)</hp>
<speed>walk 30 ft.</speed>
<str>11</str>
@ -2625,7 +2625,7 @@
<type>construct</type>
<alignment>Neutral</alignment>
<ac>15 (natural armor)</ac>
<hp>equal the steel defender's Constitution modifier + your Intelligence modifier + five times your level in this class</hp>
<hp>2</hp>
<speed>walk 40 ft.</speed>
<str>14</str>
<dex>12</dex>
@ -2663,7 +2663,10 @@
<name>Deflect Attack</name>
<text>The defender imposes disadvantage on the attack roll of one creature it can see that is within 5 feet of it, provided the attack roll is against a creature other than the defender.</text>
</reaction>
<description>Source: Eberron: Rising from the Last War p. 61</description>
<description>
HP is equal the steel defender's Constitution modifier + your Intelligence modifier + five times your level in this class
Source: Eberron: Rising from the Last War p. 61
</description>
<environment></environment>
</monster>
<monster>
@ -2672,7 +2675,7 @@
<type>construct</type>
<alignment>Neutral</alignment>
<ac>13 (natural armor)</ac>
<hp>equal the homunculus's Constitution modifier + your Intelligence modifier + your level in this class</hp>
<hp>1</hp>
<speed>walk 20 ft., fly 30 ft.</speed>
<str>4</str>
<dex>15</dex>
@ -2706,7 +2709,10 @@
<name>Channel Magic</name>
<text>The homunculus delivers a spell you cast that has a range of touch. The homunculus must be within 120 feet of you.</text>
</reaction>
<description>Source: Eberron: Rising from the Last War p. 62</description>
<description>
HP is equal the homunculus's Constitution modifier + your Intelligence modifier + your level in this class
Source: Eberron: Rising from the Last War p. 62
</description>
<environment></environment>
</monster>
</compendium>

View File

@ -227,7 +227,7 @@
<name>Maddening Presence</name>
<text>The horror targets one creature it can see within 30 feet of it. If the target can see or hear the horror, the target must make a DC 17 Wisdom saving throw. On a failed saving throw, the target becomes paralyzed until the end of its next turn. If a creature's saving throw is successful, the creature is immune to the horror's Maddening Presence for the next 24 hours.</text>
</action>
<description>Horrors and Madness:
<!-- <description>Horrors and Madness:
Horrors on Ravnica are terror and madness personified. You can represent this reality by using the madness rules in the Dungeon Master's Guide.
Whenever a character fails a saving throw against the flying horror's Frightening Screech, the shadow horror's claw attack, or the skittering horror's Maddening Presence, note that fact. At the end of the encounter, have each character who failed at least one of those saving throws make a DC 13 Wisdom saving throw. On a successful save, nothing happens. On a failed save, a character gains a form of madness from the Dungeon Master's Guide, with the severity depending on how many of the saving throws that character failed during the encounter, as shown on the Madness Severity table.
Failed Saves | Madness
@ -253,7 +253,7 @@
3 | Keen Senses. The horror has advantage on Wisdom (Perception) checks that rely on sight, sound, or smell.
4 | Mind Sight. Magical darkness doesn't impede the horror's darkvision.
Source: Guildmasters' Guide to Ravnica p. 205</description>
Source: Guildmasters' Guide to Ravnica p. 205</description> -->
<environment></environment>
</monster>
<monster>
@ -2064,7 +2064,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Chaotic Evil</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>78 (12d8+24)</hp>
<speed>walk 30 ft.</speed>
<str>16</str>
@ -2171,7 +2171,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Chaotic Neutral</alignment>
<ac>13, 16 (with mage armor)</ac>
<ac>13 (16 with mage armor)</ac>
<hp>39 (6d8+12)</hp>
<speed>walk 30 ft.</speed>
<str>13</str>
@ -2323,7 +2323,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Chaotic Neutral</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>55 (10d8+10)</hp>
<speed>walk 30 ft.</speed>
<str>10</str>
@ -2556,7 +2556,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Lawful Evil</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>49 (11d8)</hp>
<speed>walk 30 ft.</speed>
<str>10</str>
@ -2601,7 +2601,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Lawful Neutral</alignment>
<ac>11, 14 (with mage armor)</ac>
<ac>11 (14 with mage armor)</ac>
<hp>63 (14d8)</hp>
<speed>walk 30 ft.</speed>
<str>9</str>

View File

@ -1131,7 +1131,7 @@
<size>M</size>
<type>humanoid (any race)</type>
<alignment>Any alignment</alignment>
<ac>12, 15 (with mage armor)</ac>
<ac>12 (15 with mage armor)</ac>
<hp>91 (14d8+28)</hp>
<speed>walk 30 ft.</speed>
<str>9</str>

View File

@ -241,7 +241,7 @@
<size>M</size>
<type>humanoid (water genasi)</type>
<alignment>Lawful Evil</alignment>
<ac>11, 14 (with mage armor)</ac>
<ac>11 (14 with mage armor)</ac>
<hp>75 (10d8+30)</hp>
<speed>walk 30 ft., swim 30 ft.</speed>
<str>12</str>

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>