[Dark Heresy 2ed] add a damage roll template
This commit is contained in:
@@ -3024,6 +3024,7 @@
|
||||
<td><span class="sheet-inlinerollresult">{{roll}}</span></td>
|
||||
</tr>
|
||||
{{/roll}}
|
||||
|
||||
{{#range}}
|
||||
{{#rollGreater() roll 95}}
|
||||
<tr>
|
||||
@@ -3038,42 +3039,47 @@
|
||||
</tr>
|
||||
{{/rollGreater() roll 95}}
|
||||
{{/range}}
|
||||
|
||||
{{#rollGreater() degrees 0}}
|
||||
<tr class="sheet-success">
|
||||
<th colspan="2">
|
||||
<span>Success</span> <span>with additional</span> {{degress}} <span>degrees</span>
|
||||
<span>Success</span> <span>with </span> {{degrees}} <span> additional degrees</span>
|
||||
</th>
|
||||
</tr>
|
||||
{{/rollGreater() degrees 0}}
|
||||
|
||||
{{#rollTotal() degrees 0}}
|
||||
{{#^rollLess() roll target}}
|
||||
{{#^rollLess() target roll}}
|
||||
<tr class="sheet-success">
|
||||
<th colspan="2">
|
||||
<span>Success</span> <span> </span> <span></span>
|
||||
</th>
|
||||
</tr>
|
||||
{{/^rollLess() roll target}}
|
||||
{{#rollLess() roll target}}
|
||||
{{/^rollLess() target roll}}
|
||||
{{#rollLess() target roll}}
|
||||
<tr class="sheet-success">
|
||||
<th colspan="2">
|
||||
<span>Failure</span> <span> </span> <span></span>
|
||||
</th>
|
||||
</tr>
|
||||
{{/rollLess() roll target}}
|
||||
{{/rollLess() target roll}}
|
||||
{{/rollTotal() degrees 0}}
|
||||
|
||||
{{#rollLess() degrees 0}}
|
||||
<tr class="sheet-failure">
|
||||
<th colspan="2">
|
||||
<span>Failure</span> <span>with additional</span> {{degrees}} <span>degrees</span>
|
||||
<span>Failure</span> <span>with </span> {{degrees}} <span> additional degrees</span>
|
||||
</th>
|
||||
</tr>
|
||||
{{/rollLess() degrees 0}}
|
||||
|
||||
{{#psy}}
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Result Psy: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{psy}}</span></td>
|
||||
</tr>
|
||||
{{/psy}}
|
||||
|
||||
{{#^rollLess() degrees 0}}
|
||||
{{#damage}}
|
||||
<tr class="sheet-damage">
|
||||
@@ -3083,10 +3089,11 @@
|
||||
{{#rollWasCrit() damage}}
|
||||
<tr class="sheet-damage">
|
||||
<td><span class="sheet-tcat">Check for: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">Righteous Fury [[1d5]]</span></td>
|
||||
<td><span class="sheet-inlinerollresult">Righteous Fury</span></td>
|
||||
</tr>
|
||||
{{/rollWasCrit() damage}}
|
||||
{{/damage}}
|
||||
|
||||
{{#damagetype}}
|
||||
<tr class="sheet-damage">
|
||||
<td><span class="sheet-tcat">Type: </span></td>
|
||||
@@ -3094,15 +3101,15 @@
|
||||
</tr>
|
||||
{{/damagetype}}
|
||||
{{#penetration}}
|
||||
<tr class="sheet-damage">
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Penetration: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{penetration}}</span></td>
|
||||
</tr>
|
||||
{{/penetration}}
|
||||
<!--optional: Use Page 226 to determine location, since this can not be calculated this gives the option
|
||||
<!--optional: Use Page 226 to determine location, since it can not be calculated this gives the option
|
||||
to handle it in a different way-->
|
||||
{{#location}}
|
||||
<tr class="sheet-damage">
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Location: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{location}}</span></td>
|
||||
</tr>
|
||||
@@ -3115,6 +3122,7 @@
|
||||
</tr>
|
||||
{{/special}}
|
||||
{{/^rollLess() degrees 0}}
|
||||
|
||||
{{#initiative}}
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Result: </span></td>
|
||||
@@ -3123,7 +3131,58 @@
|
||||
{{/initiative}}
|
||||
</table>
|
||||
</rolltemplate>
|
||||
<rolltemplate class="sheet-rolltemplate-dh2ed-dmg">
|
||||
<table>
|
||||
<tr>
|
||||
<th colspan="2" class="sheet-title">{{name}}</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<img alt="spacer" src="https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/spacer.png"
|
||||
class="sheet-rolltemplate-spacer"></th>
|
||||
</tr>
|
||||
{{#damage}}
|
||||
<tr class="sheet-damage">
|
||||
<td><span class="sheet-tcat">Damage: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{damage}}</span></td>
|
||||
</tr>
|
||||
{{#rollWasCrit() damage}}
|
||||
<tr class="sheet-damage">
|
||||
<td><span class="sheet-tcat">Check for: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">Righteous Fury</span></td>
|
||||
</tr>
|
||||
{{/rollWasCrit() damage}}
|
||||
{{/damage}}
|
||||
|
||||
{{#damagetype}}
|
||||
<tr class="sheet-damage">
|
||||
<td><span class="sheet-tcat">Type: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{damagetype}}</span></td>
|
||||
</tr>
|
||||
{{/damagetype}}
|
||||
{{#penetration}}
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Penetration: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{penetration}}</span></td>
|
||||
</tr>
|
||||
{{/penetration}}
|
||||
<!--optional: Use Page 226 to determine location, since it can not be calculated this gives the option
|
||||
to handle it in a different way-->
|
||||
{{#location}}
|
||||
<tr>
|
||||
<td><span class="sheet-tcat">Location: </span></td>
|
||||
<td><span class="sheet-inlinerollresult">{{location}}</span></td>
|
||||
</tr>
|
||||
{{/location}}
|
||||
<!--optional: Location-->
|
||||
{{#special}}
|
||||
<tr>
|
||||
<td><strong><span class="sheet-tcat">Special: </span></strong></td>
|
||||
<td><span class="sheet-inlinerollresult">{{special}}</span></td>
|
||||
</tr>
|
||||
{{/special}}
|
||||
</table>
|
||||
</rolltemplate>
|
||||
<script type="text/worker">
|
||||
/* ---- BEGIN: TheAaronSheet.js ---- */
|
||||
// Github: https://github.com/shdwjk/TheAaronSheet/blob/master/TheAaronSheet.js
|
||||
|
||||
@@ -622,43 +622,57 @@ input:focus, textarea:focus
|
||||
}
|
||||
|
||||
/*=== sheet template ==*/
|
||||
.sheet-rolltemplate-dh2ed table {
|
||||
.sheet-rolltemplate-dh2ed table,
|
||||
.sheet-rolltemplate-dh2ed-dmg table
|
||||
{
|
||||
width : 100%;
|
||||
padding : 2px;
|
||||
background: url(https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Dark_Heresy_2ed/img/rolltemplate_bg.png) top left repeat;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-rolltemplate-spacer {
|
||||
.sheet-rolltemplate-dh2ed .sheet-rolltemplate-spacer,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-rolltemplate-spacer
|
||||
{
|
||||
max-width : 100%;
|
||||
height : auto;
|
||||
max-height: 15px;
|
||||
float : left;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-rolltemplate-spacer.sheet-invert {
|
||||
.sheet-rolltemplate-dh2ed .sheet-rolltemplate-spacer.sheet-invert,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-rolltemplate-spacer.sheet-invert
|
||||
{
|
||||
-webkit-transform: scaleX(-1);
|
||||
transform : scaleX(-1);
|
||||
float : right;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-tcat {
|
||||
.sheet-rolltemplate-dh2ed .sheet-tcat,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-tcat
|
||||
{
|
||||
font-weight: bold;
|
||||
display: inline-table;
|
||||
width: max-content;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-topline {
|
||||
.sheet-rolltemplate-dh2ed .sheet-topline,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-topline
|
||||
{
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-topline span {
|
||||
.sheet-rolltemplate-dh2ed .sheet-topline span,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-topline span
|
||||
{
|
||||
border-top : 2px solid black;
|
||||
display : block;
|
||||
margin-left : 10px;
|
||||
margin-right: 35px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed th.sheet-title {
|
||||
.sheet-rolltemplate-dh2ed th.sheet-title,
|
||||
.sheet-rolltemplate-dh2ed-dmg th.sheet-title
|
||||
{
|
||||
color : black;
|
||||
padding-left : 5px;
|
||||
padding-top : 5px;
|
||||
@@ -668,24 +682,33 @@ input:focus, textarea:focus
|
||||
text-transform: capitalize;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed tr {
|
||||
.sheet-rolltemplate-dh2ed tr,
|
||||
.sheet-rolltemplate-dh2ed-dmg tr
|
||||
{
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed td {
|
||||
.sheet-rolltemplate-dh2ed td,
|
||||
.sheet-rolltemplate-dh2ed-dmg td
|
||||
{
|
||||
padding-left: 10px;
|
||||
font-size : 15px;
|
||||
color : rgb(80, 80, 80);
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed td:last-child {
|
||||
.sheet-rolltemplate-dh2ed td:last-child,
|
||||
.sheet-rolltemplate-dh2ed-dmg td:last-child
|
||||
{
|
||||
float : right;
|
||||
padding-left : 0;
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed tr.sheet-success th,
|
||||
.sheet-rolltemplate-dh2ed tr.sheet-failure th {
|
||||
.sheet-rolltemplate-dh2ed-dmg tr.sheet-success th,
|
||||
.sheet-rolltemplate-dh2ed tr.sheet-failure th,
|
||||
.sheet-rolltemplate-dh2ed-dmg tr.sheet-failure th
|
||||
{
|
||||
padding-left: 0px;
|
||||
padding-top : 5px;
|
||||
padding-bottom : 5px;
|
||||
@@ -694,14 +717,20 @@ input:focus, textarea:focus
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .inlinerollresult {
|
||||
.sheet-rolltemplate-dh2ed .inlinerollresult,
|
||||
.sheet-rolltemplate-dh2ed-dmg .inlinerollresult
|
||||
{
|
||||
padding : 0;
|
||||
background-color: transparent;
|
||||
border : none;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-inlinerollresult {
|
||||
.sheet-rolltemplate-dh2ed .sheet-inlinerollresult,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-inlinerollresult
|
||||
{
|
||||
display: inline-table;
|
||||
min-width : 1.5em;
|
||||
width: max-content;
|
||||
text-align : center;
|
||||
background-color: transparent;
|
||||
border : none;
|
||||
@@ -712,12 +741,17 @@ input:focus, textarea:focus
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-success .inlinerollresult,
|
||||
.sheet-rolltemplate-dh2ed .sheet-damage .inlinerollresult.fullcrit {
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-success .inlinerollresult,
|
||||
.sheet-rolltemplate-dh2ed .sheet-damage .inlinerollresult.fullcrit,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-damage .inlinerollresult.fullcrit
|
||||
{
|
||||
color : #3FB315;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.sheet-rolltemplate-dh2ed .sheet-failure .inlinerollresult {
|
||||
.sheet-rolltemplate-dh2ed .sheet-failure .inlinerollresult,
|
||||
.sheet-rolltemplate-dh2ed-dmg .sheet-failure .inlinerollresult
|
||||
{
|
||||
color : #B31515;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user