Update spells structure + minor changes

This commit is contained in:
2022-11-17 13:18:32 +01:00
parent 2b00991e16
commit 0b3a82f4b7
15 changed files with 95 additions and 8 deletions

View File

@ -44,8 +44,7 @@
</li>
{{#each choice.features as |feature id|}}
<li class="flexrow item" data-level-index="{{@../../index}}" data-choice-index="{{choiceIndex}}" data-feature-id="{{feature._id}}" >
<label class="item-field-label-medium">{{feature.name}}</label>
<label class="item-field-label-long2">{{{feature.descriptionHTML}}}</label>
<label class="item-field-label-long2">{{feature.name}}</label>
<div class="item-controls item-controls-fixed">
<a class="item-control module-feature-delete" title="Delete Feature"><i class="fas fa-trash"></i></a>
</div>

View File

@ -25,7 +25,6 @@
{{> systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow">
@ -37,6 +36,59 @@
</select>
</li>
<li class="flexrow">
<label class="item-field-label-long">Actions</label>
<input type="text" class="item-field-label-long2" name="system.actions" value="{{system.actions}}" data-dtype="String"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Charge Effect</label>
<input type="text" class="item-field-label-long2" name="system.chargeeffect" value="{{system.chargeeffect}}" data-dtype="String"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">School</label>
<select class="item-field-label-long" type="text" name="system.school" value="{{system.school}}" data-dtype="String">
{{#select system.school}}
{{> systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow">
<label class="item-field-label-long">Damage</label>
<input type="text" class="item-field-label-short" name="system.damage" value="{{system.damage}}" data-dtype="String"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Damage Type</label>
<select class="item-field-label-long" type="text" name="system.damagetype" value="{{system.damagetype}}" data-dtype="String">
{{#select system.damagetype}}
{{> systems/fvtt-avd12/templates/items/partial-options-damage-types.hbs}}
{{/select}}
</select>
</li>
<li class="flexrow">
<label class="item-field-label-long">Range</label>
<input type="text" class="item-field-label-short" name="system.range" value="{{system.range}}" data-dtype="Number"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Components</label>
<input type="text" class="item-field-label-long2" name="system.components" value="{{system.components}}" data-dtype="String"/>
</li>
<li class="flexrow">
<label class="item-field-label-long">Reaction?</label>
<input type="checkbox" class="item-field-label-short" name="system.reaction" {{checked system.reaction}} />
</li>
<li class="flexrow">
<label class="item-field-label-long">Sustained?</label>
<input type="checkbox" class="item-field-label-short" name="system.sustained" {{checked system.sustained}} />
</li>
</ul>
</div>
</div>

View File

@ -90,7 +90,11 @@
<label class="item-field-label-long">{{upperFirst key}}</label>
<div class="flexrow">
<label class="item-field-label-short">Type</label>
<input type="text" class="item-field-label-short" name="system.damages.{{key}}.damagetype" value="{{damage.damagetype}}" data-dtype="Number"/>
<select class="item-field-label-long" type="text" name="system.damages.{{key}}.damagetype" value="{{system.damagetype}}" data-dtype="String">
{{#select system.damagetype}}
{{> systems/fvtt-avd12/templates/items/partial-options-damage-types.hbs}}
{{/select}}
</select>
</div>
<div class="flexrow">
<label class="item-field-label-short">Dice</label>

View File

@ -0,0 +1,8 @@
<option value="physical">Physical</option>
<option value="psychic">Psychic</option>
<option value="fire">Fire</option>
<option value="lightning">Lightning</option>
<option value="cold">Cold</option>
<option value="dark">Dark</option>
<option value="divine">Divine</option>
<option value="arcane">Arcane</option>

View File

@ -0,0 +1,12 @@
<option value="abjuration">Abjuration</option>
<option value="evocation">Evocation</option>
<option value="tansmutation">Transmutation</option>
<option value="divine">Divine</option>
<option value="druidic">Druidic</option>
<option value="necromancy">Necromancy</option>
<option value="auguration">Auguration</option>
<option value="illusion">Illusion</option>
<option value="draconic">Draconic</option>
<option value="cosmic">Cosmic</option>
<option value="fiend">Fiend</option>
<option value="fey">Fey</option>

View File

@ -5,3 +5,4 @@
<option value="sonic">Sonic</option>
<option value="vision">Vision</option>
<option value="touchmelee">Touch/Melee Attack</option>
<option value="utility">Utility</option>