Started work on support for roll comparisons.

This commit is contained in:
Devindra Payment
2014-05-30 20:16:45 -07:00
parent c92e75bc1d
commit 8050a4b482
2 changed files with 10 additions and 6 deletions
+5 -5
View File
@@ -11,20 +11,20 @@
box-sizing: border-box;
font-size: 12px;
float: left;
margin: 0.2em;
margin: 0.2em;
overflow: auto;
outline: 1px solid gray;
}
/* ===== MODULE SUPPRT ===== */
input.sheet-module-roll:checked + .sheet-wrapper .sheet-module-on-roll,
input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-on-roll,
.sheet-wrapper .sheet-module-off-roll {
display: none;
display: inline-block;
}
input.sheet-module-roll:checked + .sheet-wrapper .sheet-module-off-roll,
input.sheet-module-roll:checked ~ .sheet-wrapper .sheet-module-off-roll,
.sheet-wrapper .sheet-module-on-roll {
display: inline-block;
display: none;
}
/* ===== TABLES ===== */
+5 -1
View File
@@ -8,7 +8,7 @@ This character sheet is a work in progress. Submit issues <a href="https://githu
<thead>
<tr>
<th colspan="2">Attributes</th>
<th>Points</th>
<th colspan="2">Points</th>
</tr>
</thead>
<tbody>
@@ -23,6 +23,10 @@ This character sheet is a work in progress. Submit issues <a href="https://githu
</td>
<td><input type="text" name='attr_strength' class='sheet-short' value='10 + floor(abs(@{strength_points}) / 10) * (@{strength_points}+1)/abs(@{strength_points}+1)' disabled="disabled" /></td>
<td><input type="number" name='attr_strength_points' class='sheet-short' value='0' /></td>
<td>
<button style="outline: 1px solid blue;" class="sheet-module-off-roll" type='roll' value='/roll 3d6 vs ST @{strength}' name='roll_vsST' />
<button style="outline: 1px solid red;" class="sheet-module-on-roll" type='roll' value='/roll 3d6 vs ST |<| @{strength}' name='roll_cmpST' />
</td>
</tr>
<tr>
<td class="sheet-label">