mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-31 04:02:29 +00:00
23 lines
1.8 KiB
Plaintext
23 lines
1.8 KiB
Plaintext
|
|
<% if (!(typeof hide === "undefined")) { %>
|
|
<input class="toggle-hide" name="attr_<%= hide %>" type="checkbox" value="1" checked/>
|
|
<% } %>
|
|
<div class="flexcontainer togglesection">
|
|
<div class="flex--1">
|
|
<span class="red" data-i18n="display_<%= name %>"><%= name %></span>
|
|
</div>
|
|
<div class="flex-center flex--1">
|
|
<input class="smallinput first" type="number" name="attr_<%= name %>_modifier" value="0" placeholder="0" />
|
|
<input class="smallinput last" type="number" name="attr_display_<%= name %>" value="2" placeholder="2" readonly/>
|
|
</div>
|
|
|
|
<div class="flex-center flex--half pd15--right">
|
|
<button class="iconbutton" type="roll" name="roll_<%= name %>" value="@{gm_toggle} &{template:roll}{{mainattribute=^{<%= name %>}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{display_" + name +"}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
|
|
|
|
</button>
|
|
<button class="iconbutton" type="roll" name="roll_<%= name %>2" value="@{gm_toggle} &{template:roll}{{mainattribute=^{<%= name %>}}}{{secondattribute=^{<%= name %>}}}{{wilddieprop=[[@{wilddieprop}d6]]}}<%- include('dicetemplate.ejs', {pool: "(@{display_" + name +"}+@{display_" + name +"}+@{use_wounds}+@{sustain_malus}+@{allmod}+@{mod_roll}@{wilddiemod})"}); %>">
|
|
<span class="red" data-i18n="double">x2</span>
|
|
</button>
|
|
</div>
|
|
|
|
</div> |