Going with this design for the first iteration of single line spells

This commit is contained in:
Peter Bjerg Lidegaard
2023-02-09 10:29:59 +01:00
parent ae9cff87f0
commit d81048d6fd
2 changed files with 26 additions and 40 deletions
+13 -20
View File
@@ -19202,13 +19202,13 @@
</tr>
<tr>
<td class="sheet-td-dynamic50">
<input type="text" name="attr_spell-name" title="@{repeating_spells-wizmonster_$X_spell-name}" class="sheet-spell-big sheet-table-dynamic sheet-chrome" placeholder="Spell name" list="wizmonster-spells">
<input type="text" name="attr_spell-name" title="@{repeating_spells-wizmonster_$X_spell-name}" class="sheet-spell-big sheet-table-dynamic sheet-firefox" placeholder="Spell name" list="wizmonster-spells-ff">
<input type="text" name="attr_spell-name" title="@{repeating_spells-wizmonster_$X_spell-name}" class="sheet-table-dynamic sheet-chrome" placeholder="Spell name" list="wizmonster-spells">
<input type="text" name="attr_spell-name" title="@{repeating_spells-wizmonster_$X_spell-name}" class="sheet-table-dynamic sheet-firefox" placeholder="Spell name" list="wizmonster-spells-ff">
</td>
<td class="sheet-td-dynamic25"><input type="text" name="attr_spell-range" title="@{repeating_spells-wizmonster_$X_spell-range}" class="sheet-table-dynamic" placeholder="Range"></td>
<td class="sheet-td-dynamic25"><input type="text" name="attr_spell-aoe" title="@{repeating_spells-wizmonster_$X_spell-aoe}" class="sheet-table-dynamic" placeholder="Area of Effect"></td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-wizmonster_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wizmonster_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}-(@{misc-mod})), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-wizmonster_$X_spell-init}" value="/gmroll [[{[[1d10]]+(@{spell-cast-time})-(@{misc-mod}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
<td><button type="roll" name="roll_spell-template" title="%{repeating_spells-wizmonster_$X_spell-template}" value="@{wtype} &{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{subtlety=@{spell-subtlety}}}{{sensory=@{spell-sensory}}}{{knockdown=@{spell-knockdown}}}{{crit=@{spell-crit-size}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">T</button></td>
<td><button type="action" name="act_show" class="btn sheet-hidden sheet-show">▼</button><button type="action" name="act_hide" class="btn sheet-hidden">▲</button></td>
</tr>
@@ -19231,43 +19231,36 @@
<table class="sheet-default-header-odd-column" style="align-self: flex-start">
<tr>
<th>Level:</th>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-wizmonster_$X_spell-level}" class="sheet-table-dynamic" placeholder="Spell level"></td>
<th>School:</th>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wizmonster_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td colspan="3"><input type="text" name="attr_spell-level" title="@{repeating_spells-wizmonster_$X_spell-level}" class="sheet-table-dynamic" placeholder="Spell level"></td>
</tr>
<tr>
<th>Duration:</th>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wizmonster_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
<th>School:</th>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-wizmonster_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<th>Sphere:</th>
<td><input type="text" name="attr_spell-sphere" title="@{repeating_spells-wizmonster_$X_spell-sphere}" class="sheet-spell-half" placeholder="Sphere"></td>
</tr>
<tr>
<th>Range:</th>
<td><input class="sheet-spell-half"></td>
<th>Duration:</th>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-wizmonster_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
<th>Components:</th>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-wizmonster_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<th style="white-space: nowrap">Area of Effect:</th>
<td><input class="sheet-spell-half"></td>
<th>Subtlety:</th>
<td><input type="text" name="attr_spell-subtlety" title="@{repeating_spells-wizmonster_$X_spell-subtlety}" class="sheet-spell-half" placeholder="Subtlety"></td>
<th style="white-space: nowrap">Saving Throw:</th>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-wizmonster_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<th>Subtlety:</th>
<td><input type="text" name="attr_spell-subtlety" title="@{repeating_spells-wizmonster_$X_spell-subtlety}" class="sheet-spell-half" placeholder="Subtlety"></td>
<th>Sensory:</th>
<td><input type="text" name="attr_spell-sensory" title="@{repeating_spells-wizmonster_$X_spell-sensory}" class="sheet-spell-half" placeholder="Sensory"></td>
<th>Knockdown:</th>
<td><input type="text" name="attr_spell-knockdown" title="@{repeating_spells-wizmonster_$X_spell-knockdown}" class="sheet-spell-half" placeholder="[[d6]]"></td>
</tr>
<tr>
<th>Sensory:</th>
<td><input type="text" name="attr_spell-sensory" title="@{repeating_spells-wizmonster_$X_spell-sensory}" class="sheet-spell-half" placeholder="Sensory"></td>
<th>Critical:</th>
<td><input type="text" name="attr_spell-crit-size" title="@{repeating_spells-wizmonster_$X_spell-crit-size}" class="sheet-spell-half" placeholder="Large (1d3 hits)" list="spell-crit-size"></td>
</tr>
<tr>
<td colspan="3" style="background: transparent"></td>
<td><button type="action" name="act_spell-crit2" class="btn sheet-action-button" title="%{repeating_spells-wizmonster_$X_spell-crit2}">Critical Effect</button></td>
<td colspan="2" style="background-color: transparent;"><button type="action" name="act_spell-crit2" class="btn sheet-action-button" title="%{repeating_spells-wizmonster_$X_spell-crit2}">Critical Effect</button></td>
</tr>
<tr>
<th>Damage:</th>
@@ -10,13 +10,13 @@
</tr>
<tr>
<td class="sheet-td-dynamic50">
<input type="text" name="attr_spell-name" title="@{repeating_spells-#REPLACE0#_$X_spell-name}" class="sheet-spell-big sheet-table-dynamic sheet-chrome" placeholder="Spell name" list="#REPLACE0#-spells">
<input type="text" name="attr_spell-name" title="@{repeating_spells-#REPLACE0#_$X_spell-name}" class="sheet-spell-big sheet-table-dynamic sheet-firefox" placeholder="Spell name" list="#REPLACE0#-spells-ff">
<input type="text" name="attr_spell-name" title="@{repeating_spells-#REPLACE0#_$X_spell-name}" class="sheet-table-dynamic sheet-chrome" placeholder="Spell name" list="#REPLACE0#-spells">
<input type="text" name="attr_spell-name" title="@{repeating_spells-#REPLACE0#_$X_spell-name}" class="sheet-table-dynamic sheet-firefox" placeholder="Spell name" list="#REPLACE0#-spells-ff">
</td>
<td class="sheet-td-dynamic25"><input type="text" name="attr_spell-range" title="@{repeating_spells-#REPLACE0#_$X_spell-range}" class="sheet-table-dynamic" placeholder="Range"></td>
<td class="sheet-td-dynamic25"><input type="text" name="attr_spell-aoe" title="@{repeating_spells-#REPLACE0#_$X_spell-aoe}" class="sheet-table-dynamic" placeholder="Area of Effect"></td>
<td><input type="text" name="attr_spell-cast-time" title="@{repeating_spells-#REPLACE0#_$X_spell-cast-time}" class="sheet-short" placeholder="Cast time"></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-#REPLACE0#_$X_spell-init}" value="/gmroll [[{([[1d10]]+@{spell-cast-time}-(@{misc-mod})), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
<td><button type="roll" name="roll_spell-init" title="@{repeating_spells-#REPLACE0#_$X_spell-init}" value="/gmroll [[{[[1d10]]+(@{spell-cast-time})-(@{misc-mod}), 1}kh1]] [Initiative (@{spell-name})]&{tracker}">Initiative</button></td>
<td><button type="roll" name="roll_spell-template" title="%{repeating_spells-#REPLACE0#_$X_spell-template}" value="#REPLACE1#&{template:2Espell}{{title=@{spell-name}}}{{splevel=@{spell-level}}}{{school=@{spell-school}}}{{components=@{spell-components}}}{{time=@{spell-cast-time}}}{{range=@{spell-range}}}{{duration=@{spell-duration}}}{{aoe=@{spell-aoe}}}{{save=@{spell-saving-throw}}}{{subtlety=@{spell-subtlety}}}{{sensory=@{spell-sensory}}}{{knockdown=@{spell-knockdown}}}{{crit=@{spell-crit-size}}}{{damage=@{spell-damage}}}{{damagetype=@{spell-damage-type}}}{{healing=@{spell-healing}}}{{reference=@{spell-reference}}}{{materials=@{spell-materials}}}{{effects=@{spell-effect}}}">T</button></td>
<td><button type="action" name="act_show" class="btn sheet-hidden sheet-show">▼</button><button type="action" name="act_hide" class="btn sheet-hidden">▲</button></td>
</tr>
@@ -39,43 +39,36 @@
<table class="sheet-default-header-odd-column" style="align-self: flex-start">
<tr>
<th>Level:</th>
<td><input type="text" name="attr_spell-level" title="@{repeating_spells-#REPLACE0#_$X_spell-level}" class="sheet-table-dynamic" placeholder="Spell level"></td>
<th>School:</th>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-#REPLACE0#_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<td colspan="3"><input type="text" name="attr_spell-level" title="@{repeating_spells-#REPLACE0#_$X_spell-level}" class="sheet-table-dynamic" placeholder="Spell level"></td>
</tr>
<tr>
<th>Duration:</th>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-#REPLACE0#_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
<th>School:</th>
<td><input type="text" name="attr_spell-school" title="@{repeating_spells-#REPLACE0#_$X_spell-school}" class="sheet-spell-half" placeholder="School"></td>
<th>Sphere:</th>
<td><input type="text" name="attr_spell-sphere" title="@{repeating_spells-#REPLACE0#_$X_spell-sphere}" class="sheet-spell-half" placeholder="Sphere"></td>
</tr>
<tr>
<th>Range:</th>
<td><input class="sheet-spell-half"></td>
<th>Duration:</th>
<td><input type="text" name="attr_spell-duration" title="@{repeating_spells-#REPLACE0#_$X_spell-duration}" class="sheet-spell-half" placeholder="Duration"></td>
<th>Components:</th>
<td><input type="text" name="attr_spell-components" title="@{repeating_spells-#REPLACE0#_$X_spell-components}" class="sheet-spell-half" placeholder="Components"></td>
</tr>
<tr>
<th style="white-space: nowrap">Area of Effect:</th>
<td><input class="sheet-spell-half"></td>
<th>Subtlety:</th>
<td><input type="text" name="attr_spell-subtlety" title="@{repeating_spells-#REPLACE0#_$X_spell-subtlety}" class="sheet-spell-half" placeholder="Subtlety"></td>
<th style="white-space: nowrap">Saving Throw:</th>
<td><input type="text" name="attr_spell-saving-throw" title="@{repeating_spells-#REPLACE0#_$X_spell-saving-throw}" class="sheet-spell-half" placeholder="Saving Throw"></td>
</tr>
<tr>
<th>Subtlety:</th>
<td><input type="text" name="attr_spell-subtlety" title="@{repeating_spells-#REPLACE0#_$X_spell-subtlety}" class="sheet-spell-half" placeholder="Subtlety"></td>
<th>Sensory:</th>
<td><input type="text" name="attr_spell-sensory" title="@{repeating_spells-#REPLACE0#_$X_spell-sensory}" class="sheet-spell-half" placeholder="Sensory"></td>
<th>Knockdown:</th>
<td><input type="text" name="attr_spell-knockdown" title="@{repeating_spells-#REPLACE0#_$X_spell-knockdown}" class="sheet-spell-half" placeholder="[[d6]]"></td>
</tr>
<tr>
<th>Sensory:</th>
<td><input type="text" name="attr_spell-sensory" title="@{repeating_spells-#REPLACE0#_$X_spell-sensory}" class="sheet-spell-half" placeholder="Sensory"></td>
<th>Critical:</th>
<td><input type="text" name="attr_spell-crit-size" title="@{repeating_spells-#REPLACE0#_$X_spell-crit-size}" class="sheet-spell-half" placeholder="Large (1d3 hits)" list="spell-crit-size"></td>
</tr>
<tr>
<td colspan="3" style="background: transparent"></td>
<td><button type="action" name="act_spell-crit2" class="btn sheet-action-button" title="%{repeating_spells-#REPLACE0#_$X_spell-crit2}">Critical Effect</button></td>
<td colspan="2" style="background-color: transparent;"><button type="action" name="act_spell-crit2" class="btn sheet-action-button" title="%{repeating_spells-#REPLACE0#_$X_spell-crit2}">Critical Effect</button></td>
</tr>
<tr>
<th>Damage:</th>